When I click middle mouse button in a browser, it activates the scroll mode on browser with cursor like . The scroll mode cancels on Esc key or next mouse click. It we left/right click when in scroll mode, mouse events fires in different orders.
In IE, middle button up and next mouse down and up are not firing.
In Chrome, the next mouse up event is not firing.
Is there any way to cancel the scroll mode via javascript?
Is there any way to get all events fired in order?
See Fiddler
var mouseDowns = 0;
var mouseUps = 0;
$('body').on('mousedown', 'div', function () {
$('#logs').prepend('<br/>mousedown' + mouseDowns++);
});
$('body').on('mouseup', 'div', function () {
$('#logs').prepend('<br/>mouseup' + mouseUps++);
});