[pointerevents] Button order for MouseEvent.button vs MouseEvent.buttons very easy to miss (#622)

CendioOssman has just created a new issue for https://github.com/w3c/pointerevents:

== Button order for MouseEvent.button vs MouseEvent.buttons very easy to miss ==
For what I assume historical reasons, `MouseEvent.button` and `MouseEvent.buttons` do not order buttons in the same way. The second and third button switch meaning between the two attributes.

This is very easy to overlook, so I think a warning note would be very useful.

(If MDN could also get a warning, then that would be fantastic)

Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/622 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 12 January 2026 22:04:40 UTC