Gesturefy: Wheel gestures do nothing on MacOS

Created on 29 Nov 2017  路  21Comments  路  Source: Robbendebiene/Gesturefy

I'm on MacOS right now (Fx58b7 with the about:config bit set), so can't test on Windows-- it may be broken there also.

In short, wheel gestures do nothing at all. I tried multiple actions, and also tried activating wheel gestures with the LMB, neither one worked. Completely broken at the moment.

external

Most helpful comment

I vote for b) then. (also on Mac, 58, HS)

All 21 comments

I tested Gesturefy 1.1.17 on Linux using Firefox 58 b7 and everything is working fine. Do the mouse gestures work?

Just got home, and I can confirm wheel gestures work fine on windows. So looks like a MacOS-specific problem.

i have the same problem on 58b7

Does this problem only exist in Firefox 58 beta? Or also in Firefox 57 (using left or middle mouse button of course)

Just tested with Fx57.0.1 using the LMB and wheel gestures do not work there either on MacOS.

Can you please execute the following code in the web console (Ctrl + Shift + K) on a website where wheel gestures should normally work.

window.addEventListener("wheel", (event) => {
    console.log("buttons", event.buttons, "button", event.button, "deltaY", event.deltaY);
}, true);

After executing the code, click somewhere on the website and scroll up/down (without holding any other button) and do it again while holding the left or right mouse button.
Finally please post the console logs here.

In all cases, the mousewheel scrolls the page normally, ignoring the additional button held entirely. When scrolling with the RMB held, the context window shows on RMB mouseup.

Scrolling up and down using mousewheel with no buttons held:

buttons 0 button 0 deltaY -1
debugger eval code:2:2
buttons 0 button 0 deltaY -2 debugger eval code:2:2
buttons 0 button 0 deltaY -4 debugger eval code:2:2
buttons 0 button 0 deltaY 1
debugger eval code:2:2
buttons 0 button 0 deltaY 2 debugger eval code:2:2
buttons 0 button 0 deltaY 3 debugger eval code:2:2
buttons 0 button 0 deltaY 4 debugger eval code:2:2
buttons 0 button 0 deltaY 5 debugger eval code:2:2
buttons 0 button 0 deltaY 6

Scrollup with wheel with RMB held:

buttons 0 button 0 deltaY -1
debugger eval code:2:2
buttons 0 button 0 deltaY -2 debugger eval code:2:2
buttons 0 button 0 deltaY -1
debugger eval code:2:2
buttons 0 button 0 deltaY -3 debugger eval code:2:2
buttons 0 button 0 deltaY -4

Scrolldown with wheel with RMB held:

buttons 0 button 0 deltaY 1
debugger eval code:2:2
buttons 0 button 0 deltaY 2 debugger eval code:2:2
buttons 0 button 0 deltaY 4
debugger eval code:2:2
buttons 0 button 0 deltaY 6 debugger eval code:2:2
buttons 0 button 0 deltaY 1
debugger eval code:2:2
buttons 0 button 0 deltaY 2 debugger eval code:2:2

Scrollup with wheel with LMB held:

buttons 0 button 0 deltaY -1
debugger eval code:2:2
buttons 0 button 0 deltaY -2 debugger eval code:2:2
buttons 0 button 0 deltaY -3 debugger eval code:2:2
buttons 0 button 0 deltaY -1
debugger eval code:2:2

@rodalpho Thanks. So the output clearly shows that this must be a firefox related problem, because "buttons" should not be 0 if you hold down another mouse button.

The same wheel gestures and actions work fine in Foxygestures on Fx58b9 on MacOS. Note they also say "button 0".

Using Foxygestures, scrolling up and down using mousewheel with no buttons held:

buttons 0 button 0 deltaY -1
debugger eval code:2:2
buttons 0 button 0 deltaY -2
debugger eval code:2:2
buttons 0 button 0 deltaY -1
debugger eval code:2:2
buttons 0 button 0 deltaY -2 debugger eval code:2:2
buttons 0 button 0 deltaY 1
debugger eval code:2:2
buttons 0 button 0 deltaY 3 debugger eval code:2:2
buttons 0 button 0 deltaY 4 debugger eval code:2:2
buttons 0 button 0 deltaY 5 debugger eval code:2:2
buttons 0 button 0 deltaY 1

Scrollup with wheel with RMB held:

Sticky gesture detected 1
mouseEvents.js:396:9
buttons 0 button 0 deltaY -1
debugger eval code:2:2

Scrolldown with wheel with RMB held:

buttons 0 button 0 deltaY 1 debugger eval code:2:2

The same wheel gestures and actions work fine in Foxygestures on Fx58b9 on MacOS.

Maybe because the author implemented them differently.

Yep, I expect so. Just pointing out that it is possible to do.

I suggest you open a new bug ticket here: https://bugzilla.mozilla.org/enter_bug.cgi since I'm not able to reproduce it by my self.

If you tell me what to write, I'm happy to do so. I don't code addons and lack the context and knowledge to write a bug report of the quality that mozilla won't immediately ignore or wontfix-- they are notoriously crusty open-source type greybeards over there.

Report your MacOS operating system, different Firefox versions where the bug occurs, maybe your mouse pointer device and answer the following questions:

What did you do? (steps to reproduce)

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

What happened? (actual results)
Console outputs 0 even if the left mouse button is pressed/hold.

What should have happened? (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

You can also note that it is working as expected on Windows and Linux.

Unsurprisingly, not getting much out of Mozilla on this. Two options here.

a) Wait for Mozilla to fix the issue. This is likely to approximately coincide with the heat death of the universe, as all once-mighty stars collapse into burnt cinders and the average temperature approaches absolute zero. The End of All Things.

b) Implement wheel gestures differently, perhaps following the Firegestures method.

I vote for b) then. (also on Mac, 58, HS)

Still broken on firefox 60.

Just for the reference: the only extension with which the mouse wheel gestures work well right now on my mac with Firefox 61 is this https://addons.mozilla.org/en-US/firefox/addon/opera-gestures/ . Perhaps their implementation is worth investigating.

Since this has basically been a WONTFIX from both the addon dev and Mozilla, I've been using Foxygestures for the past couple of months. Wheel gestures work there also.

I checked out opera gestures and it's totally non-customizable, which makes it a non-starter for me.

still didn't work

Was this page helpful?
0 / 5 - 0 ratings