w3c / uievents

UI Events
https://w3c.github.io/uievents/
Other
147 stars 52 forks source link

`MouseEvent.buttons` explanation of `contextmenu` event should mention about the platform dependency #326

Open masayuki-nakano opened 2 years ago

masayuki-nakano commented 2 years ago

MouseEvent.buttons of contextmenu event should mention about the platform dependency.

On Windows, context menu should be opened when mouse button is released. However, on the other platforms, it may be not. Therefore buttons won't contain the mouse button triggering to open the context menu on Windows, but may contain on the other platforms.

There is a note like:

Depending on the platform, the contextmenu event may be dispatched before or after the mouseup event.

But I think that this is not enough for buttons.

(Coming from https://bugzilla.mozilla.org/show_bug.cgi?id=1770671)