Closed Bug 1610477 Opened 5 years ago Closed 3 years ago

Firefox wayland has a very fast scrolling on trackpad

Categories

(Core :: Widget: Gtk, defect, P3)

72 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1752862

People

(Reporter: vincent.liao, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

Open firefox wayland and start browsing on trackpad.

Actual results:

The scrolling is very unnatural and fast, it's uncomfortable to use.

Expected results:

The scrolling of wayland and x11 should be the same, but it's not.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

I can confirm this bug. MOZ_ENABLE_WAYLAND looks very promising but the touchpad scrolling is too fast to be controllable.

Last time I spoke to the libinput maintainer about this subject (other toolkits are guilty of the same bug) he said the ideal touchpad scrolling speed is the unaccelerated speed of cursor movement. I would tend to agree.

I can also confirm this bug. On my trackpad, the scrolling speed on wayland is almost uncontrollable. More precisely, the inertia is almost zero. When I do a small "flick" on X11, it will scroll about 1/3 of the screen then stop. On wayland, it will scroll probably 8 screens worth of content (if the page is that long) before it comes to a stop.

I tested this on the latest nightly and there is no change.

Related https://gitlab.gnome.org/GNOME/gtk/-/issues/1308 "two-finger scrolling is far too fast".
This is a general problem with GNOME/GTK, though Firefox might exacerbate the issue.

I can confirm the bug is present on wayland, but not in xwayland or native x11. Furthermore, my GTK apps do not appear to be exhibiting the same issue, so I doubt that GTK is responsible, although I am not knowledgeable enough to say for sure.

(In reply to Yariv from comment #6)

Related https://gitlab.gnome.org/GNOME/gtk/-/issues/1308 "two-finger scrolling is far too fast".
This is a general problem with GNOME/GTK, though Firefox might exacerbate the issue.

It appears that the above upstream linked bug has been closed due to the confusing array of comments. There appears to be another issue opened for it though: https://gitlab.gnome.org/GNOME/gtk/-/issues/3631

I agree that firefox seems to somehow exacerbate the gtk issue, perhaps since one often wants to scroll to a very specific part of the page. Also, the scrolling behaviour can be very easily compared to other operating systems by opening the same webpages.

I would be surprised if this was related to the GTK issue because GTK was never as dramatically fast as MOZ_ENABLE_WAYLAND seems to be. Maybe Firefox exacerbates the issue as you say, but either way it feels like Firefox needs its own unique fix. Please don't just wait for a GTK fix and expect that to also fix Firefox.

I can confirm this for Firefox 86.0.1

Operating System: Gentoo Linux
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.7-gentoo
OS Type: 64-bit
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600

In Windows 10, with the Precision touchpad, unaccelerated scrolling deltas are used directly. In Firefox and GTK, they are not used directly, it seems. Also, the scrolling on X11 using XInput2 with touchpad is also unusable for me, same with GTK. Haven't exactly tested Wayland though, but for me, it is 1.5xish compared to X11.

I could manage the situation for Firefox as changing mousewheel.default.delta_multiplier_x and mousewheel.default.delta_multiplier_x from 100 to 30, and mousewheel.min_line_scroll_amount from 5 to 180. With deltas, I could manage touchpad scrolling speed usable, and with min_line_scroll_amount one, mouse doesn't be affected by the delta reduction command. These are my findings.

Priority: -- → P3

Firefox 89 beta running on Wayland session of KDE Plasma is affected.

Firefox 95.0 on Fedora 35 KDE Wayland Session is also affected. It kind of feels like using touch screen scrolling without the touch screen.

Firefox 96 on Gnome 41.2 is still affected. These settings seem to help though. Also the other one should be multiplier_y.

In Windows 10, with the Precision touchpad, unaccelerated scrolling deltas are used directly. In Firefox and GTK, they are not used directly, it seems. Also, the scrolling on X11 using XInput2 with touchpad is also unusable for me, same with GTK. Haven't exactly tested Wayland though, but for me, it is 1.5xish compared to X11.

I could manage the situation for Firefox as changing mousewheel.default.delta_multiplier_x and mousewheel.default.delta_multiplier_x from 100 to 30, and mousewheel.min_line_scroll_amount from 5 to 180. With deltas, I could manage touchpad scrolling speed usable, and with min_line_scroll_amount one, mouse doesn't be affected by the delta reduction command. These are my findings.

Bug 1752862 adds prefs to tweak this more precisely. Bug 1753033 tracks potentially switching the default.

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

Attachment

General

Creator:
Created:
Updated:
Size: