[Project_owners] Event.button in Firefox

Neil neil at parkwaycc.co.uk
Tue Apr 18 12:47:39 EDT 2006

Didier Ernotte wrote:

>Is it me or the value of the event.button keeps changing all the time with every new release. In my extension I have some code that tests the value of the left button with
>if (event.button == 0) ...
>and that was fine up to Mozilla 1.7 . With the preview of FF 1.5 and the official release of 1.5 and the value have change to 
>if (event.button == 65535) ...
>and it was ok too with beta of FF 2.0
>Now with the FF I was to switch back to 
>if (event.button == 0) ...
>Does any body else have the same problem, or can I use an attribute of some Interface like EVENT.LEFT_BUTTON to have always the correct value ?
It should always be 0. It is for me in SeaMonkey 1.0 (same Gecko version 
as FF

More information about the Project_owners mailing list