Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button order for MouseEvent.button vs MouseEvent.buttons very easy to miss #390

Open
CendioOssman opened this issue Dec 3, 2024 · 0 comments

Comments

@CendioOssman
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant