I'm developing a jQuery plugin which intercept several mouse events (mousedown, mouseup, mouseout, click) for different purposes.
However sometimes it doesn't work correctly due to one event fired before the other.
I can't really reproduce it, so please understand I made some research (for eaxmple I found http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-eventgroupings ).
How do I set mouse order firing (e.g. mouseup after click)? I can use jQuery if necessary.
click
is always amousedown
followed by amouseup
. If you are holding the mouse button down, then moving the cursor away before letting go, then it probably won't count as aclick
. – Rocket Hazmatmouseup
guaranteed to fire beforeclick
, or vice versa? – Matt Dunnclick
is the complete action:mousedown
+mouseup
, so in essence you are expecting the same event to be fired when it comes to listening to mouseup events from bothclick
andmouseup
– AGEmouseup
, and another toclick
. I can imaging there could be unusual scenarios where you want to do that. – Matt Dunn