Open Bug 1424893 Opened 7 years ago Updated 2 years ago

Mouse button events don't fire with wheel motion on MacOS

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

58 Branch
x86
macOS
defect

Tracking

()

People

(Reporter: rodalpho+github, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:58.0) Gecko/20100101 Firefox/58.0
Build ID: 20171207170405

Steps to reproduce:

Running Fx58b10 on MacOS High Sierra 10.13.2. Note this bug only applies to MacOS, I can confirm that Windows works fine. 

1)    run window.addEventListener("wheel", (event) => console.log(event.buttons), true);
2)    hold/press the left mouse button and scroll via the mouse wheel



Actual results:

 Console outputs 0 even if the left mouse button is pressed/hold.


Expected results:

The ouput should contain the value of the currently pressed buttons (e.g. 1).
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons
Brief context, this bug breaks wheel mousegestures on MacOS, where you hold down a mouse button and scroll the mousewheel to trigger an action such as scrolling to the top of the page, zooming in the page, or switching tabs.
Component: Untriaged → Event Handling
OS: Unspecified → Mac OS X
Product: Firefox → Core
Hardware: Unspecified → x86
Markus and Stephen have been working on High Sierra issues. They may have ideas.
Flags: needinfo?(spohl.mozilla.bugs)
Flags: needinfo?(mstange)
I'm able to reproduce on 10.12, so this doesn't seem to be a High Sierra-only issue. Could you run mozregression[1] to see if this ever worked?

[1] http://mozilla.github.io/mozregression/
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(spohl.mozilla.bugs)
Flags: needinfo?(rodalpho+github)
Flags: needinfo?(mstange)
Priority: -- → P3
I was unable to get mozregression to install on MacOS, python errors came up. I did test several releases by hand. The problem began in Firefox 43.

Fx40, Oct 2015: worked properly, output 1
Fx42, Nov 2015: worked properly, output 1
Fx43, Dec 2015: same problem, output 0
Fx45, Mar 2016: same problem, output 0
Fx50, Nov 2016: same problem, output 0
Flags: needinfo?(rodalpho+github)
Component: Event Handling → User events and focus handling

This is still broken on MacOS two years later, verified with Fx 71b4 on MacOS 10.15 Catalina. Still hoping for a fix.

Still broken. FF 85.0, MacOS Mojave.

Severity: normal → S3

Still broken. FF107, MacOS Monterey.

One of the add-ons affected is Gesturefy with 95,464 users. Please implement a fix.

You need to log in before you can comment on or make changes to this bug.