I have discovered a double-click problem in IE.
The following is my HTML:
<div id="test">Hello World!</div>
And my jQuery:
$('#test').bind('dblclick', function (event) {
event.stopPropagation();
$(this).css({'background-color': 'red'});
});
In IE, do the following:
- Outside the DIV, mouse down → mouse up → mouse down → HOLD the mouse down.
- Then, with the mouse held down, move the mouse into the DIV and mouse up.
The DIV turns red, as if the double-click event originated in the DIV.
It seems that in IE the double-click event is fired both when the double-click:
- STARTS and ENDS in the DIV
- STARTS outside the DIV and ENDS inside the DIV.
Yet in FF/Chrome the event is fired only when the double click STARTS and ENDS inside the DIV.
What is the official explanation for this? And how can I make IE double-clicks behave like FF/Chrome double-clicks?