You may have "Snap" on? This is where you can tell photoshop to "snap" to a guideline or object etc. Go to the "View" menu and look down towards the bottom, there is "Snap" which you just click on to turn it on or off, there is also "Snap to" which gives you options of what you want to snap to.
Hope that helps
Hope that helps