ISSUE-54 - Public View

non-issue regarding MouseEvent.button

State:
CLOSED
Product:
DOM 3 Events
Raised by:
Anne van Kesteren
Opened on:
2006-03-27
Description:
Suggested resolution: leave it like it is (and perhaps chase down the guy who
did not think of the fancy bitmask solution).

"Testcases":
 http://annevankesteren.nl/test/dom/events/dump/001.svg
 http://annevankesteren.nl/test/dom/events/dump/002.htm

With help from Maciej and Björn it seems that Batic, Opera, Mozilla, Safari and
ASV all do it like the W3C specified. That is, 0: left click, 1: middle click,
2: right click. Although it's not always reported as click for every button...

Internet Explorer is the only browser that differs. It has implemented
MouseEvent.button as a bitmask. 1: left click, 2: right click, 4: middle click.
And of course, 3: left + right click, 5: left + middle click, 6: right + middle
click and 7: left + right + middle click. (It has been reported that this
bitmasking behavior does not always work...)

Note: Some of these links may be accessible only to W3C Members.

Related emails:
  1. ISSUE-54: non-issue regarding MouseEvent.button (from dean+cgi@w3.org on 2006-03-27)
  2. Minutes 2006-03-27 (from chaals@opera.com on 2006-04-09)

Related notes:

2006-05-01: Resolved to make no change 2006-03-27.