prevent mouse move if the point is the same