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
e.buttons variable of the event instance seems more reliable.
Click event doesn't need to read the mouse buttons. And also, it shouldn't because click event is also fired for touch devices natively by the browser.
e.buttons variable gives 1->"for left", 2->"for right" and 4->"for middle" buttons. Use them now.
Previously we were using 0->"for left", which is confused with 0->"for no buttons". Now there is no confusion.
This fixes issues which happen when no button is pressed but we act like left button is pressed.
Signed-off-by: Gökay Şatır <[email protected]>
Change-Id: I8ebf58baad75a75fc83150ee628c7e95d29b86f4
0 commit comments