> Overall, Firefox is the most consistent. Ctrl+click and 2-finger-click should act the same, but Chrome and Safari are not. Safari should send auxclick for non-primary mouse clicks. #334
Overall, Firefox is the most consistent. Ctrl+click and 2-finger-click should act the same, but Chrome and Safari are not. Safari should send auxclick for non-primary mouse clicks.
Note that after https://bugzilla.mozilla.org/show_bug.cgi?id=1615732 Firefox dispatches mousedown/mouseup with button=0 (instead of button=2) for Ctrl+click, so we would dispatch click event then instead. 2-finger trackpad click behaves the same (mousedown/mouseup with button=2 and auxclick).
Note that after https://bugzilla.mozilla.org/show_bug.cgi?id=1615732 Firefox dispatches mousedown/mouseup with button=0 (instead of button=2) for Ctrl+click, so we would dispatch
click
event then instead. 2-finger trackpad click behaves the same (mousedown/mouseup with button=2 andauxclick
).I test with https://domeventviewer.com/mouse-event-viewer.html on Firefox Nightly again.
Firefox = Nightly 80.0a1 (2020-06-29)
Click
mousedown
mouseup
click
Ctrl+click
mousedown
contextmenu
mouseup
click
2-finger trackpad click
mousedown
contextmenu
mouseup
auxclick
Originally posted by @EdgarChen in https://github.com/w3c/uievents/issues/265#issuecomment-652347442