Package Firefox with MOZ_USE_XINPUT2=1 in environment to enable pixel scrolling with touchpad and touch gestures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Mozilla Firefox |
Confirmed
|
Medium
|
||
| firefox (Ubuntu) |
Wishlist
|
Olivier Tilloy |
Bug Description
Ubuntu version: Kubuntu 17.04
Firefox version: 53.0.3+
In Firefox, two-finger scroll gestures on a touchpad are interpreted as scroll wheel rotations, and the content scrolls three lines at a time. This is inappropriate behavior for touchpad scrolling; it should scroll pixel-by-pixel.
Firefox already has the ability to do this, you just need to turn it on by running the program with MOZ_USE_XINPUT2=1 in the environment: for example, by running `MOZ_USE_XINPUT2=1 firefox`, or adding it to /etc/environment or something like that.
Turning on this behavior yields a large usability improvement for laptop users. Therefore, I am proposing that MOZ_USE_XINPUT2=1 be permanently added to the packaging such that it's always present when Firefox runs. This is what Fedora does, and it results in a much improved experience for the laptop user.
Please add option to reenable via about:config or something - I'm really got used to it...
|
#14 |
(In reply to Kuba Niewiarowski from comment #1)
> Please add option to reenable via about:config or something - I'm really got
> used to it...
Just set MOZ_USE_XINPUT2=1 env variable which enables it in Firefox.
(In reply to Martin Stránský from comment #2)
> Just set MOZ_USE_XINPUT2=1 env variable which enables it in Firefox.
Not working...
I'm using Aurora builds from https:/
|
#16 |
MOZ_USE_XINPUT2=1 is in Nightly (bug 1207973) but not yet in Aurora.
|
#17 |
*** Bug 1234005 has been marked as a duplicate of this bug. ***
|
#18 |
Using "MOZ_USE_XINPUT2=1" &e10s worked for me (https:/
However, it would be interesting how this is handled by Firefox for Android, which clearly needs touch support and XINPUT2.
Adolfo Jayme (fitojb) wrote : | #1 |
Changed in firefox (Ubuntu): | |
importance: | Undecided → Wishlist |
Launchpad Janitor (janitor) wrote : | #2 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in firefox (Ubuntu): | |
status: | New → Confirmed |
|
#19 |
*** Bug 1390130 has been marked as a duplicate of this bug. ***
|
#20 |
I think we can enable the XInput2 for recent Gtk+ versions (say Gtk+ >= 3.20) as the related Gtk+ focus bugs was fixed but for XInput2 only. Also Fedora enables XInput2 by default and we don't have any user complains.
|
#21 |
Before the switch we need to address Bug 1182700. Bug 1170342, Bug 1196777 should be fixed for reasonable recent systems.
|
#22 |
For Bug 1182700 looks like gnome folks gave up (https:/
summary: |
- Package Firefox with MOZ_USE_XINPUT2=1 in environment + Package Firefox with MOZ_USE_XINPUT2=1 in environment to enable touch + gestures |
|
#23 |
Gnome issue 750994 has been migrated to their Gitlab instance:
https:/
cousteau (cousteaulecommandant) wrote : Re: Package Firefox with MOZ_USE_XINPUT2=1 in environment to enable touch gestures | #3 |
Counter-argument: Try to zoom in on a PDF with this option on. (It goes in increments of 10% *per pixel*.)
This could be considered a bug on Firefox though, so I guess as soon as those little things are polished this change could be made (but then again I guess the Firefox devs would include this option by default themselves).
summary: |
- Package Firefox with MOZ_USE_XINPUT2=1 in environment to enable touch - gestures + Package Firefox with MOZ_USE_XINPUT2=1 in environment to enable pixel + scrolling with touchpad and touch gestures |
Florian Boucault (fboucault) wrote : | #4 |
It is indeed a common complaint/request as evidenced by the people talking about it in various places (blogs, reddit, etc.):
https:/
https:/
https:/
I paste here again the upstream bug report as the link changed slightly: https:/
Recent comments in it (a year old) are fairly positive:
"I think we can enable the XInput2 for recent Gtk+ versions (say Gtk+ >= 3.20) as the related Gtk+ focus bugs was fixed but for XInput2 only. Also Fedora enables XInput2 by default and we don't have any user complains."
However there is a list of possible issues that need to be checked before moving on this:
https:/
https:/
https:/
https:/
https:/
Additionally, we need to check it works adequately when the synaptics driver is enabled (I'm not sure but perhaps it's enabled by default on Macbooks?).
Finally, I tried a couple more tweaks in about:config to make the scrolling experience smoother with a touchpad:
- disabling smooth scrolling: general.
OR
- enabling msdPhysics scrolling: general.
I'm not yet entirely convinced by either and still have to test it more, especially with a mouse.
Florian Boucault (fboucault) wrote : | #5 |
For completeness sake, here is the OpenSuse bug report talking about it:
https:/
Florian Boucault (fboucault) wrote : | #6 |
Quick workaround for those who want to enjoy the benefits right away:
echo "MOZ_USE_XINPUT2=1" | sudo tee /etc/environmen
Changed in firefox (Ubuntu): | |
assignee: | nobody → Olivier Tilloy (osomon) |
Nate Graham (pointedstick) wrote : | #7 |
BTW I've since changed my mind on this. Setting the proposed environment variable makes toupad scrolling mysteriously slow down after a notification arrives until you switch focus away from Firefox and back (See https:/
I grudgingly live with the issue when I'm using a touchpad, but I unset the envar when I'm using a mouse because of how bad it is.
I think https:/
Nate Graham (pointedstick) wrote : | #8 |
So I recommend closing this bug, or else devoting some Canonical development resources to fixing the above-mentioned upstream bugs first.
uman (brennan-vincent) wrote : | #9 |
If this bug is not going to be fixed soon, I suggest Ubuntu should bundle another browser in the next release.
Maybe it doesn't make a difference for people who are not used to using a touchpad on other browsers (or Firefox on other OSes), but this bug made Ubuntu-on-laptop absolutely maddening to use for me and I assume for many others as well.
Nate Graham (pointedstick) wrote : | #10 |
it's annoying for me too. The problem is that setting the envar just substitutes some problems with different ones:
- Without this envar set, there is no touchscreen scrolling, and touchpad scrolling goes three lines at a time rather than pixel-by-pixel
- With this envar set and a notification appears, touchpad scrolling is interrupted and mouse wheel scrolling stops working entirely until Firefox is de-focused and re-focused
The correct solution is to fix these bugs, not toggle between two broken states. Chromium has different scrolling bugs, BTW.
Changed in firefox (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in firefox (Ubuntu): | |
status: | Invalid → Confirmed |
Daniel van Vugt (vanvugt) wrote : | #11 |
Note we already have bug 1312376 covering touchscreen support. This bug should be about touchpads.
tags: | added: eoan |
tags: | added: bionic |
tags: | added: performance |
Changed in firefox: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
|
#24 |
*** Bug 1597218 has been marked as a duplicate of this bug. ***
We had to disable XI2/multidevice support in bug 1170342 due to focus and scrolling related issues. We should monitor these issues to see if it would be possible to re-enable XI2 in the future.