Back & forward mouse buttons are detected as middle mouse button, on mac. Imice x7 gaming mouse.
Categories
(Core :: Widget: Cocoa, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox92 | --- | fixed |
People
(Reporter: golubovicm, Assigned: mstange)
References
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:73.0) Gecko/20100101 Firefox/73.0
Steps to reproduce:
Connected my new Imice x7 gaming mouse to iMac, running Mojave 10.14.6.
https://www.aliexpress.com/item/32706439831.html
Actual results:
Forward and back mouse buttons are working as middle mouse buttons.
Expected results:
They should work as in other apps, provide forward and back actions. Buttons are working well in i.e. Chrome, Thunderbird, PHP Storm on same iMac. Also work well on FF on Windows.
When testing mouse buttons from firefox here: https://www.onlinemictest.com/mouse-test/
They work well. Problem is in Firefox...it doesn't handle events well.
Hi Milan
Sadly i don´t have that kind of mouse with those buttons to test.
Can you Please download the latest Firefox Nightly release from here: https://nightly.mozilla.org/ and retest the problem and let us know?
If you still have the issue please create a new profile, you have the steps here:https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles?redirectlocale=en-US&redirectslug=Managing-profiles#w_starting-the-profile-manager
Lastly test if the issue is reproducible in safe mode, here is a link that can help you:
https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode
Regards
Pablo
Hello,
Tried nightly build but it acts the same - when I press back of forward button circle for scrolling appears, just as when I press middle mouse button.
I'll try other actions you suggested when I grab some time and in meanwhile maybe you can order that mouse. It's cool and it's cheap! :)
Regards,
Milan
Thanks Milan, It looks good, but its sold out already !
I will set the component of this bug as Widget:Cocoa since it looks like a Mac specific problem. Our devs might have the equipment to test this.
Regards
Pablo
Thank you.
It's definitely Mac specific - I have the same mouse on Win10 system and FF reads mouse buttons well there.
What's strange to me is that on Mac when opening that mouse test page (link I posted above) even on FF all buttons are read well. But just FF interface is not treating all 2 buttons (middle, back and forward) as middle one.
Updated•4 years ago
|
Comment 6•4 years ago
|
||
Hi folks,
I think I can confirm this bug as well. I have a Logitech G502 and experience the same behavior. The Logitech software says that the buttons are mapped to "Button 4" (for what's usually back) and "Button 5" (for what's usually forward).
For what it's worth, Chrome and the Electron-based Slack and Visual Studio Code handle these buttons as expected (back goes back, forward goes forward). Safari ignores them.
Comment 7•4 years ago
|
||
I confirm the same behavior in macOS with razer mamba elite, the buttons are treated as middle buttons both on FF. They work well on Chrome or FF in Windows.
I have tested this issue on FF 76.0.1 / Nightly / fresh install of FF / FF 76.0.1 in safe mode and the behavior is the same.
Updated•4 years ago
|
Comment 9•4 years ago
|
||
Thanks, Stephen. My bug was definitely a duplicate - apologies, I searched for mouse4 and mouse5, not back and forward.
Confirming that this is definitely a Firefox specific, Mac specific bug.
Updated•4 years ago
|
Comment 11•4 years ago
|
||
Mouse DEXP WM-1004BU, There are problems on mac, on Windows — ok
Comment 13•4 years ago
|
||
I can confirm this exact behavior with my mouse (SteelSeries Rival 110) on Mac. Fourth and fifth mouse buttons trigger back and forward in the same Firefox version (81.0) on Windows.
Comment 14•4 years ago
|
||
For anyone wondering, this is a macOS issue, not necessarily a Firefox issue. Firefox is just doing what the OS is telling it to do, so this isn't surprising. macOS doesn't handle the mouse4 and 5 button very well anywhere, and therefore, Safari, Finder, and other applications suffer from the same issue. Chromium browsers only have this functionality because they manually added it.
In the meantime, for anyone who found this bug and wants this functionality in Firefox, there is an open source app called SensibleSideButtons (not my creation) that makes mouse4/5 have backwards/forewards compatibility everywhere in macOS, including Firefox.
Theoretically if the anyone was interested in making this work, one could take a look at the workaround from SensibleSideButtons and add it to Firefox itself. The website offers a detailed explanation of how it works (scroll down to "Technical Notes").
Comment 15•4 years ago
|
||
I believe this happens with any mouse (I use some cheapo DELL MOCZUL) that has the navigation buttons, and doesn't come with "macOS software/drivers" to generate the swipe events.
These issues were reported as far back as 2017
- https://bugzilla.mozilla.org/show_bug.cgi?id=1401837
- https://bugzilla.mozilla.org/show_bug.cgi?id=1399086
The latter bug even suggests the non-Apple mouse buttons are supposed to work, out of the box in Firefox, but as of version 83.0, they don't.
Comment 17•3 years ago
|
||
Doesn't look like just a simple macOS issue, since this recognizes button 4 and button 5 as such:
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons
This just returns 1 (auxiliary button, middle button) when it should return 3 (button 4) or 4 (button 5):
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
Assignee | ||
Comment 18•3 years ago
|
||
The patch in bug 1704883 adds the necessary conversion functions.
Assignee | ||
Comment 19•3 years ago
|
||
Depends on D111981
Updated•3 years ago
|
Comment 20•3 years ago
|
||
D111982 references members of nsCocoaUtils which don't exist (tried to build from source). When will this finally be fixed?
Comment 21•3 years ago
|
||
It seems after a recent update, this bug now also affects my Logitect MX Anywhere mouse.
Comment 22•3 years ago
|
||
This also affects a Logitech Hero mouse. Mouse buttons 4 and 5 are both detected as middle clicks
Comment 23•3 years ago
|
||
I can confirm this bug on my MacBook m1 with a Logitech MX master 3. Back and forward are working fine on chrome or other tools.
Comment 24•3 years ago
|
||
To be precise, it seems the problem only occurs when connected via Bluetooth. When I use the Logitech thingy to connect, all works fine.
Comment 25•3 years ago
|
||
(In reply to h from comment #24)
To be precise, it seems the problem only occurs when connected via Bluetooth. When I use the Logitech thingy to connect, all works fine.
Macbook Air M1; Logitech thing connected via my monitor, because the Bluetooth of the laptop is buggy anyway.
Comment 26•3 years ago
|
||
I can confirm this issue on my Mac M1 using a Logitech G502 connected via USB cable.
Comment hidden (advocacy) |
Updated•3 years ago
|
Comment 29•3 years ago
|
||
Comment on attachment 9215675 [details]
Bug 1615213 - Support special back/forward mouse buttons. r=masayuki
Patch works great when it comes to mouse button functionality, but the MouseEvent.buttons demo no longer returns 8 or 16 as results when you press back/forward mouse buttons:
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons
Comment 30•3 years ago
|
||
Comment on attachment 9215675 [details]
Bug 1615213 - Support special back/forward mouse buttons. r=masayuki
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
This demo no longer returns anything. (Expected it to return 3 for back and 4 for forward.)
Assignee | ||
Comment 31•3 years ago
|
||
Thanks for testing! Yes, web pages will no longer see mousedown events when these buttons are pressed. This matches what Firefox on Windows does. But it does not match what Chrome does.
I think this patch is a good first step. As a follow-up, we can try to match Chrome's behavior, on all platforms.
Assignee | ||
Comment 32•3 years ago
|
||
(In reply to Markus Stange [:mstange] from comment #31)
As a follow-up, we can try to match Chrome's behavior, on all platforms.
I've filed bug 1720538 for this.
Comment 33•3 years ago
|
||
Pushed by mstange@themasta.com: https://hg.mozilla.org/integration/autoland/rev/79a1b53dcccd Support special back/forward mouse buttons. r=masayuki
Comment 34•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Comment hidden (spam) |
Description
•