-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Scroll Wheel] discrete round away from zero + high res scrolling #6317
Conversation
16d0b4c
to
358e59e
Compare
6c8e2b5
to
b3a5041
Compare
Scrolling now works without issues using wireless mouse, can confirm that sensitivity is way too high hahah. Here are some logs, if they are useful for anything. Thanks @Agent00Ming !!! |
Works in Kitty, way too high, testing xwayland now |
b3a5041
to
15bbfe2
Compare
I think there's a better approach but this works as a band-aid fix for now. Applications have their own interpretation of discrete scrolling... the higher frequency of discrete scroll events works great in Firefox but not for terminal emulators and other apps... (the better approach being accumulating enough Read up on the mess that is high-res scrolling here |
d257126
to
f6e7547
Compare
note that this should not affect low resolution scrolling (most common wired mice) with the exception of fixing an unnoticed bug where putting your |
Just tested, still feels a bit fast for my liking. |
I'm afraid there isn't much we can do about xwayland clients, they take the scroll events at face value or something to that effect and don't support the wayland high resolution scrolling signals. |
1241b01
to
ba662ef
Compare
Yeah I guess so, that's why there is worlds of difference between applications. Firefox for example works great (launched on X just to test) but kitty still flies lmao. Tried on Minecraft too (games running on Xwayland also suffer from this), and noticed it scrolls 6 steps each scroll of the wheel. |
e.deltaDiscrete can be multiples of 30 instead of the usual 120 causing the rounded value to be 0 when too small causing erratic scrolling.
5ba281e
to
6f966c1
Compare
Fixes sensitivity issues for clients that support value120 axis events
6f966c1
to
62b8274
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm thanks!
The scroll speed in xwayland applications certainly is a hassle though. There's a good number of applications (unfortunately proprietary) that are stuck in this state on my end, and not being able to scale it really is far from ideal. Think games, where switching a weapon is tied to scroll; or IDEs. Anyway, I managed to run into here while wondering what might have changed to make these apps scroll so fast. |
Yeah, this is just unusable for me. Discord, Easy Effects, Nautilus, and Dolphin all scroll way too fast. Unless something changes Hyprland is just not something I can use anymore. Everything was fine before I updated. |
All expect easy effects for me has Wayland support for which the scrolling is not broken, it’s currently only ruined on xwayland apps, try to make them launch under wayland |
Describe your PR, what does it fix/add?
Fixes #6278 and fixes #6299
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
Fixed an unnoticed bug where setting
input:scroll_factor
too low would cause discrete axis events to round to zero.Is it ready for merging, or does it need work?
Ready for merging but could use some more testing.