[Webkit-unassigned] [Bug 280755] [macOS & iPadOS] The wrong values for are reported for the `MouseEvent.button`& 'MouseEvent.which' property for extra mouse buttons.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 30 07:34:03 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=280755

--- Comment #10 from Jeffrey Blanz <possum.bracing0v at icloud.com> ---
Using this demo these are all the errors for macOS, iOS, iPadOS, and visionOS https://unixpapa.com/js/testmouse.html :

I a testing this on safari for all platforms, including STP and Chrome Canary as a comparison. I am using the M720 Triathlon mouse by Logitech which has two extra mouse buttons on the side.
____________________________________________________________________
On macOS the wrong values are reported for the which and button property for extra  Mouse Buttons:

Extra Mouse button 1 on Safari for macOS :

mousedown   which=2* button=1* buttons=8
mouseup     which=2* button=1* buttons=0

What Extra Mouse button 1 should be:

mousedown   which=4 button=3 buttons=8
mouseup     which=4 button=3 buttons=0

Extra Mouse button 2 on Safari for macOS:

mousedown   which=2* button=1* buttons=16
mouseup     which=2* button=1* buttons=0

What Extra Mouse button 2 button should be:

mousedown   which=5 button=4 buttons=16
mouseup     which=5 button=4 buttons=0
____________________________________________________________________

On iOS, iPadOS, and visionOS the wrong values are reported for the which, button, and buttons properties for all mouse buttons besides the right or left click:

Middle Mouse Button & all Extra Mouse Buttons:

mousedown   which=1* button=0* buttons=1*
mouseup     which=1* button=0* buttons=0
click       which=1* button=0 buttons=0

Middle Mouse should be:

mousedown   which=2 button=1 buttons=4
mouseup     which=2 button=1 buttons=0

Extra Mouse button 1 should be:

mousedown   which=4 button=3 buttons=8
mouseup     which=4 button=3 buttons=0

Extra Mouse button 2 button should be:

mousedown   which=5 button=4 buttons=16
mouseup     which=5 button=4 buttons=0

________________________________________________________________________
On iOS, not iPadOS, the incorrect 'buttons' is reported for a right click as well as the others above:

mousedown   which=1 button=0 buttons=0*
mouseup     which=1 button=0 buttons=0
click       which=1 button=0 buttons=0

Should look Like: 

mousedown   which=1 button=0 buttons=1
mouseup     which=1 button=0 buttons=0
click       which=1 button=0 buttons=0

_________________________________________________________________________
* wrong values

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241030/60110760/attachment.htm>


More information about the webkit-unassigned mailing list