Reputation: 168239
Is the click
(or contextmenu
, dblclick
) event fired if, between the press and release of the mouse button, the mouse is moved within the object the event is bound to? Does it depend on the browser?
At least for clicking on a link, the click event seems to be canceled if I move the mouse. But for other types of clicks, it looks like they are fired sometimes. I am not sure if my observation is right.
Upvotes: 1
Views: 1631
Reputation: 705
Then event is triggered after the release when the mouse is pressed and released on the bound object
The click event is sent to an element when the mouse pointer is over the element,
and the mouse button is pressed and released.
I know this is jQuery, but it explains it well: http://api.jquery.com/click/
Upvotes: 1