Closed Bug 1717454 Opened 4 years ago Closed 4 years ago

Back and Forward buttons of Razer Pro Click do vertical scroll instead

Categories

(Core :: Widget: Cocoa, defect)

Firefox 89
defect

Tracking

()

RESOLVED DUPLICATE of bug 1615213

People

(Reporter: matteo.calabro, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36
Firefox for Android

Steps to reproduce:

I have a Razer Pro Click I use with my MacBook Pro. The mouse has back and forward buttons on the side and the scroll wheel can click left and right.

Actual results:

Using the side buttons (back and forward), the browser register them as middle click and locks into vertical scrolling.

Expected results:

Back and Forward buttons should move back and forth the history.
The mouse behaves as expected on Chromium-based browsers.

I wrote the bug from Brave, the defect happens on Firefox 89 and 89.0.1. I am not sure about previous versions

The Bugbug bot thinks this bug should belong to the 'Core::Panning and Zooming' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Panning and Zooming
Product: Firefox → Core

We should probably start with understanding what sort of events we receive at the widget level when these buttons are pressed.

Component: Panning and Zooming → Widget: Cocoa

I can make a small script to log all the mouse events received from the Razer Pro Click

If there is any other way I can help you, just tell

Output of:

document.onmousedown = (e) => console.log(e, e.button)
document.onmouseup = (e) => console.log(e, e.button)

Forward button:

mousedown { target: textarea#comment, buttons: 16, clientX: 1048, clientY: 584, layerX: 368, layerY: 207 } 1
mouseup { target: textarea#comment, buttons: 0, clientX: 1049, clientY: 583, layerX: 369, layerY: 206 } 1

Back button:

mousedown { target: textarea#comment, buttons: 8, clientX: 1049, clientY: 583, layerX: 369, layerY: 206 } 1
mouseup { target: textarea#comment, buttons: 0, clientX: 1049, clientY: 583, layerX: 369, layerY: 206 } 1

Same log on Brave:

VM819:1 MouseEvent {isTrusted: true, screenX: 910, screenY: 322, clientX: 879, clientY: 222, …} 4
VM812:1 MouseEvent {isTrusted: true, screenX: 911, screenY: 322, clientX: 880, clientY: 222, …} 4
VM819:1 MouseEvent {isTrusted: true, screenX: 903, screenY: 324, clientX: 872, clientY: 224, …} 3
VM812:1 MouseEvent {isTrusted: true, screenX: 903, screenY: 324, clientX: 872, clientY: 224, …} 3

It receives Middle Button instead of X1 and X2.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.