Hi, I don't have maya open but at the top of the screen there will be 3 small square icons; snap to grid, point and curve. All you've done is accidentally activated one. Just click on it again and it will turn it off (to find it look for an icon with a magnet on it, it's either that one or it's next to it). cheers gubar