Showing posts with label DoubleClick in IE. Show all posts
Showing posts with label DoubleClick in IE. Show all posts

DoubleClick in IE

The normal sequence of events fired leading up to a doubleclick go as follows.
    • mousedown
    • mouseup
    • click
    • mousedown
    • mouseup
    • click
    • doubleclick
but in IE, if you doubleclick on a link, and image or any element, the events fired are:
    • mousedown
    • mouseup
    • click
    • mousedown
    • mouseup
    • click
    • doubleclick
Thats right, no second mousedown?, and no second click!
As a developer, if you are tracking mousedown, mouseup, and click events… you need to be aware of this because if your users doubleclick by accident any actions that are designed to “stop” onmouseup might try and reference something that wasn’t started… and if the onclick was being used to quit listening for example… that event may never fire.