Issue with high resolution scrolling mouse (Logitech G502) in firefox and xwayland

I posted this topic in the KDE section because I do not really know the cause for this issue. Feel free to move it in a better section.

Hello, I am using KDE 6 with a Logitech G502 Lightspeed mouse but the scroll wheel is very frustrating.

By default the mouse wheel has regular steps, but you can switch to high resolution scrolling by pressing a button: the wheel is not restricted by steps anymore and can spin freely.

While it is a nice feature, I am having trouble making this work properly on Firefox and XWayland apps such as games (or X11 in general).

While I only use Wayland, I also need X11 to work as gaming uses XWayland.

on X11 (or XWayland apps/games)

  • On X11 the mouse will skip steps when changing direction similar to the user in this post: Logitech M705 mouse scrolling issue.
  • Chromium/electron apps do not have this issue and work perfectly (step and free spin).
  • Firefox also has this issue but you can work around it by setting MOZ_USE_XINPUT2=1. Setting this also means you get pixel perfect scroll when using the free spin mode so this is perfect.

On Wayland

  • On native apps such as dolphin scrolling works as expected.
  • As with X11, chromium and electron apps do not have issues.
  • Again, Firefox is annoying. On Wayland the MOZ_USE_XINPUT2=1 option does nothing as pixel perfect touchpad scroll is already supported in Wayland. But while it works for touchpads, the pixel perfect scroll does not work with the mouse in free spin mode. Also, when the mouse is using regular steps, it does not skip when changing direction as on X11, but the scroll amount it smaller, making for a confusing scroll experience.

I would love to upload videos to show the issue more clearly but I can’t seem to be able to in the forum.

If anyone has ideas as how to work around this or to whom to report the issue it would be wonderful.

System specs
Operating System: Manjaro Linux
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.10.3-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 31,3 GiB of RAM
Graphics Processor: AMD Radeon RX 6700 XT

If Firefox has an issue - then your best venue would be to talk to the mozilla firefox developers by open a bug report with their repo.

See → File a bug report or feature request for Mozilla products | Contributors Help

Thank you for not pestering the forum with images and videos.

For the firefox issue I figured it would make sense to talk to them about it yeah.

Do you have any idea what the X11/XWayland could be? Skipping steps is very annoying especially when playing games.

I can understand your frustration - but I am not a gamer so no experience there.

I found the issue on the Firefox side (1836886 - [wl_pointer.axis_value120] Firefox does not support high resolution scrollwheels in Wayland mode). Seems it won’t be fixed soon sadly. A workaround for now is to force Firefox to run on XWayland and set the MOZ_USE_XINPUT2=1 env variable.

The issue remaining with the mouse wheel skipping steps is not limited to games, but to most X11 apps. It just so happens most of the X11 apps I use are games.

Seems the issue got some activity and someone found a way to fix this. I just tried Firefox Nightly 133.0a1 (2024-10-10) and the scroll is smooth as expected. Guess we just have to wait for it to land in stable.

1 Like

Update:

Firefox 133 got release a few days ago and indeed I do not have scrolling issues anymore.

For games, Wine 9.22 with Wayland support got released as well, so once this gets into Proton this could help as well