You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the pointer events spec , a pointer event should have a button value of -1 if "Neither buttons nor touch/pen contact changed since last event".
However, this is inconsistent with the behavior of when the click event was a MouseEvent, where the button property would return 0 (for the primary button).
Additionally, it says
The click event should only be fired for the primary pointer button (i.e., when button value is 0, buttonsvalue is 1)
which further seems to contradict the statement that button should be -1 if it hasn't changed.
The text was updated successfully, but these errors were encountered:
According to the pointer events spec , a pointer event should have a button value of -1 if "Neither buttons nor touch/pen contact changed since last event".
However, this is inconsistent with the behavior of when the
click
event was a MouseEvent, where thebutton
property would return0
(for the primary button).Additionally, it says
which further seems to contradict the statement that
button
should be-1
if it hasn't changed.The text was updated successfully, but these errors were encountered: