Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Add HiRes Scroll Wheel Support

Open abihf opened this issue 11 months ago • 5 comments

Description

My Logitech MX Master hires scrolling is not working on hyprland. It runs smoothly on weston.

Reference: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3461 https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/72/

abihf avatar Mar 17 '24 11:03 abihf

how does one test that, and does it work on sway?

vaxerski avatar Mar 17 '24 16:03 vaxerski

It's already working for me in hyprland, test telegram-desktop

Kommynct avatar Mar 18 '24 01:03 Kommynct

I am experiencing the same issue with the same mouse but it is random. Scrolling works totally fine but at some point it starts acting "choppy" to unusable levels.

proudhon avatar Mar 26 '24 16:03 proudhon

I think I'm facing this issue.

I have an MX Master 3 mouse.

Running solaar or logiops can make the mouse and hires scrolling work, but if I let the mouse sit for a while and timeout or disconnect (bluetooth I think), then the scrolling will be clearly "broken" until I restart solaar or logiops.

I used to run sway and had zero issues there, so the hires scrolling does seem to work in sway. When running sway I do not need to run solaar or logiops.

techmunk avatar Mar 30 '24 01:03 techmunk

It seems that high resolution scrolling breaks mouse_down/mouse_up as well, e.g.

          "$mod, mouse_down, workspace, e+1"
          "$mod, mouse_up, workspace, e-1"

The resulting behavior is similar to this ticket in sway

newzubakhin avatar Apr 25 '24 17:04 newzubakhin

how does one test that, and does it work on sway?

For testing without a mouse that supports it I would use https://gitlab.com/warningnonpotablewater/libinput-config and set the discrete-scroll-factor-y=0.125

I'm on 0.43 and high resolution scroll support is still a bit wonky. Nautilus and gtk apps just ignore any hires scroll events and qt based apps are even worse because they register both the normal and hires scroll event. (idk how it works but there seems to be a timeout in hyprland where after a few ms without a hires event it treats it as a 'normal' scroll event)

Interestingly, using the scroll wheel in kitty works perfectly and is exacly the same as on gnome/plasma.

My mouse is a Logitech G502X and I enabled the hires scroll with solaar.

Aleksandar204 avatar Sep 10 '24 07:09 Aleksandar204