evdev: use filter_dispatch_constant() for button scrolling
authorPeter Hutterer <peter.hutterer@who-t.net>
Sun, 4 Sep 2022 23:26:21 +0000 (09:26 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 7 Sep 2022 23:03:15 +0000 (09:03 +1000)
commitf80b142dc3c06f65abd43e4df3000b24c6eec2b3
tree581f5a90254c7686aa09c5ce33215d2eebf27f62
parentcef91f5b43ddcf01875d16d2e69180f4b71c5bf5
evdev: use filter_dispatch_constant() for button scrolling

Our pointer filter code has two functions - one for accelerated movement
and one for "constant" movement (i.e. no accel factor provided but same
conversions). Let's use that instead of a manual normalization.

This fixes an issue with button scrolling on high-dpi mice in the flat
pointer acceleration: normal pointer motion in the flat profile isn't
normalized but the button scrolling was - resulting in e.g. 5 times
slower motion for button scrolling on a 5000dpi mouse.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-fallback.c