DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

Scrollable views have inertia even when scrolling with mouse wheel

Open zeroeightysix opened this issue 1 month ago • 1 comments

Rather confusingly, the scrollable views in the settings menus, etc, will continue to scroll with inertia as if using a touchscreen. No other application does this with mouse wheel scrolls; so this usually has me overshoot my scroll, as it doesn't stop scrolling when I release the mouse wheel.

A demonstration:

https://github.com/user-attachments/assets/5bc1816d-a62c-4dbc-bc25-bac856781341

Notice the "jitter" at the end of my scroll action, when scrolling with inertia takes over. This should not happen when using scroll with mousewheel; only when dragging.

zeroeightysix avatar Nov 11 '25 13:11 zeroeightysix

It's a tricky problem because we have to detect if its a mousewheel or touchpad manually, which is done by checking the delta basically, which on a touchpad/touchscreen is much more pixel-precise.

This may help b753c8840bc2370fbe97adede74d7641c5fe75db - if not then I'll have to dive deeper

bbedward avatar Nov 11 '25 17:11 bbedward

Hi I'm getting the same I have the 0.6.2-3 on cachyOS which i think should have this fix. But I also have a sneaky feeling it might be because of my mouse? The isMouseWheel var looks like its getting pretty specific numbers (mod 120?) but I am using a Logitech g903, which has the logitech free scroll? which when "free" will smoothly scroll through. Is it possible that might cause issues? I think the free scroll just triggers a ratchet mechanism, in the mouse, so might not be getting the exact values for the isMouseWheel? (to be clear, i get the momentum when the ratchet is engaged, and when its also "free", though i only really use it with the ratchet engaged)

mutantflea avatar Dec 05 '25 10:12 mutantflea

Try this c69a55df291a4a4bda82d96ae46ade6668590caa - i made changes for the detection that, is at least working for my scenario.

120 is the standard step, but I guess it breaks down for some high-res mouse wheels. QT lacks the ability for good detection of touchpads which makes it an annoying issue

bbedward avatar Dec 05 '25 15:12 bbedward