In jQuery, the click event for an element seems to automatically fire the mousemove event for that element. Is there any way to prevent this?
Here is the simplest test case I could put together. For me, using the trackpad, clicking on the field raises the mousemove event. And I did not notice any movement in the mouse cursor.
http://jsfiddle.net/nay5d/
UPDATE. I tested the code in both Safari and Chrome and Firefox. In Safari, a click calls mousemove. In Chrome / Firefox, it seems that clicking does not trigger mousemove. Interesting.
source share