Live data from Hacker News

Mouse scroll wheel acceleration, implemented in user space

github.com

21–30 of 58 posts

Re: Mouse scroll wheel acceleration, implemented in user space

#21
post #2

It was also implemented physically in some mouses for example, Logtiech G502: " Dual-Mode Hyper-Fast Scroll Wheel Unlock the scroll wheel for hyper-fast continuous scrolling to spin quickly through long pages, or lock it down for single click precision scrolling. The weighty, metal wheel delivers confident, smooth and satisfying control for either mode. " https://www.youtube.com/watch?v=aANF2OOVX40 ( Interstellar Mou…

Until you have an unlocked wheel, you don’t know what you’re missing out on. On the other hand, gestures in Firefox, specifically “Scroll to Bottom”, have made me miss mine less. Also, unlocked scroll wheels get you banned within seconds on Counter Strike servers for input lag.

Endless accidental weapon changes

Re: Mouse scroll wheel acceleration, implemented in user space

#22
post #18
post #2

It was also implemented physically in some mouses for example, Logtiech G502: " Dual-Mode Hyper-Fast Scroll Wheel Unlock the scroll wheel for hyper-fast continuous scrolling to spin quickly through long pages, or lock it down for single click precision scrolling. The weighty, metal wheel delivers confident, smooth and satisfying control for either mode. " https://www.youtube.com/watch?v=aANF2OOVX40 ( Interstellar Mou…

This is what I love about the MX Master 3, it's like a hybrid for this where it has precision scrolling when moving it slowly but give it a flick and it will automatically unlock and go into smooth scrolling. https://youtu.be/KTzZui0nrrs I wish this feature was on more mice

Yeah I’m addicted to it. I can't use any other mouse since trying the Mx Master 3 scroll wheel.

Re: Mouse scroll wheel acceleration, implemented in user space

#23

Looks like this is X based, wonder if it could be ported to Wayland.

Looks like it's using pynput[1], which can use uinput[2] (direct kernel API) on Linux.

[1]: https://pynput.readthedocs.io/en/latest/

[2]: https://www.kernel.org/doc/html/latest/input/uinput.html

Re: Mouse scroll wheel acceleration, implemented in user space

#24
post #2

It was also implemented physically in some mouses for example, Logtiech G502: " Dual-Mode Hyper-Fast Scroll Wheel Unlock the scroll wheel for hyper-fast continuous scrolling to spin quickly through long pages, or lock it down for single click precision scrolling. The weighty, metal wheel delivers confident, smooth and satisfying control for either mode. " https://www.youtube.com/watch?v=aANF2OOVX40 ( Interstellar Mou…

Until you have an unlocked wheel, you don’t know what you’re missing out on. On the other hand, gestures in Firefox, specifically “Scroll to Bottom”, have made me miss mine less. Also, unlocked scroll wheels get you banned within seconds on Counter Strike servers for input lag.

>unlocked scroll wheels get you banned within seconds on Counter Strike servers for input lag

What's the connection between those two?

Re: Mouse scroll wheel acceleration, implemented in user space

#25
post #24

Earlier quoted context omitted.

Until you have an unlocked wheel, you don’t know what you’re missing out on. On the other hand, gestures in Firefox, specifically “Scroll to Bottom”, have made me miss mine less. Also, unlocked scroll wheels get you banned within seconds on Counter Strike servers for input lag.

>unlocked scroll wheels get you banned within seconds on Counter Strike servers for input lag What's the connection between those two?

I meant to say input spam, sorry!

Re: Mouse scroll wheel acceleration, implemented in user space

#26
post #2

It was also implemented physically in some mouses for example, Logtiech G502: " Dual-Mode Hyper-Fast Scroll Wheel Unlock the scroll wheel for hyper-fast continuous scrolling to spin quickly through long pages, or lock it down for single click precision scrolling. The weighty, metal wheel delivers confident, smooth and satisfying control for either mode. " https://www.youtube.com/watch?v=aANF2OOVX40 ( Interstellar Mou…

It’s a feature that I rolled my eyes at when I got my mouse, but now use several times a day. Unlock the wheel and spiiiiiiiiiiiiiin until I get far enough down the page. So much more convenient and versatile than clicking and dragging the scroll bar tab.

Re: Mouse scroll wheel acceleration, implemented in user space

#27

I always struggle with the exact opposite problem. Mouse wheel acceleration feels incredibly unnatural to me and I can't turn it off on macOS.

I used to use Steelseries Exactmouse, but now we have https://github.com/linearmouse/linearmouse

linearmouse is a life-saver for my MX Master 3S, which feels awful on OSX compared to Windows.

Re: Mouse scroll wheel acceleration, implemented in user space

#28
post #2

It was also implemented physically in some mouses for example, Logtiech G502: " Dual-Mode Hyper-Fast Scroll Wheel Unlock the scroll wheel for hyper-fast continuous scrolling to spin quickly through long pages, or lock it down for single click precision scrolling. The weighty, metal wheel delivers confident, smooth and satisfying control for either mode. " https://www.youtube.com/watch?v=aANF2OOVX40 ( Interstellar Mou…

I have one of those at my current job.

I very much dislike it. Probably because I'm not used to it.

Gnome, my DE, has all sorts of 'scroll on hover' tricks. Scroll while hovering an app icon, will "alt tab" between windows of that app. Scroll over the volume icon to up or down it. And so forth.

At least once a day, all my windows get jumbled, or the volume set to 100, because the wheel was spinning while I moved my mouse over something. I did learn of some nice scroll-on-hover features in Gnome this way, though.

Re: Mouse scroll wheel acceleration, implemented in user space

#29
post #18
post #2

It was also implemented physically in some mouses for example, Logtiech G502: " Dual-Mode Hyper-Fast Scroll Wheel Unlock the scroll wheel for hyper-fast continuous scrolling to spin quickly through long pages, or lock it down for single click precision scrolling. The weighty, metal wheel delivers confident, smooth and satisfying control for either mode. " https://www.youtube.com/watch?v=aANF2OOVX40 ( Interstellar Mou…

This is what I love about the MX Master 3, it's like a hybrid for this where it has precision scrolling when moving it slowly but give it a flick and it will automatically unlock and go into smooth scrolling. https://youtu.be/KTzZui0nrrs I wish this feature was on more mice

MX Anywhere 3 also has this, the only ambidextrous option!

Re: Mouse scroll wheel acceleration, implemented in user space

#30

Forgive me if I'm incorrect, but doesn't a user space implementation mean it does not understand to reset momentum between window focus events? So if I scroll like crazy in app1 then Alt-Tab to app2, scrolling carries to app2?

Yes that's correct. That's certainly a problem I sometimes actually observe.

Although you could extend it to handle that. But that makes it more platform dependent. E.g. on Linux and MacOS, the scroll events are send to the top-most window under the mouse cursor. It does not matter what window you have focused. I think on Windows it is always send to the focused windows?

PRs are welcome. :)

Post reply on HN