PDA

View Full Version : [3.x] Inconsistent click event firing in certain cases



mankz
29 Dec 2010, 1:34 AM
In FF and IE, the mouse click event fires inconsistently in some cases. Try the following:

1. Open the Ext example browser. http://dev.sencha.com/deploy/dev/examples/
2. Run "Ext.getBody().on('click', function(){console.log('click')});" in the console.
2. Click somewhere, hold the mouse and release the button on another element.

Result:
In IE, a click event always seems to fire.
In FF, it only seems to count as a click event when the mouse button is released on the same element...?

Any thoughts on why this happens?