Hi all,

    I'm about to checkin the fix for
http://bugzilla.mozilla.org/show_bug.cgi?id=60703 to make our event.button
match the DOM spec.  The practical result of this is that 0 is now left
mouse button, 1 is now middle, and 2 is now right (as opposed to the former
1, 2, 3 respectively).  This affects JS (event.button), XBL (the button
filter for click handlers) and C++ (nsDOMEvent::GetButton), so please be
careful in future changes.  |which|, a dom0 4.x event attribute, is still
supported with the old values (1, 2, 3) for backwards compatibility.  In an
ideal world we'd have meaningful constants for these and you wouldn't have
to think or change code...but we don't :-)

Thanks,

Blake



Reply via email to