PDA

View Full Version : can Ext track left mouse button down ?



mxu
1 Dec 2007, 4:38 AM
W3C index left mouse button as 0, so it is almost impossible to mask the left mouse button
down. does Ext provides some alternative ?

evant
1 Dec 2007, 5:07 AM
I'm not sure what you're asking, can you explain more?

mxu
1 Dec 2007, 1:32 PM
e.g. when left mouse button is pressed, there is an event of mousedown, since W3C labels
left mousse as 0 (MicroSoft labels left mouse as 1 instead), so it is hard to tell it is a left mouse button down,

evant
1 Dec 2007, 3:51 PM
Ext normalizes the button click across different browsers:



Ext.fly(document).on('click', function(e)
{
alert(e.button);
}
);


A left click should always return 0.