summaryrefslogtreecommitdiff
path: root/src/evdev-fallback.c
diff options
context:
space:
mode:
authorYinon Burgansky <yinonburgansky@gmail.com>2023-02-18 21:12:13 +0200
committerYinon Burgansky <yinonburgansky@gmail.com>2023-02-24 13:01:34 +0200
commit93135c201223c2e8f6a66ba1f0d95b1022f51790 (patch)
treec1c01f6e623038124a472ab1eb7ee31af30e4287 /src/evdev-fallback.c
parent6c88d9a251644c99ebb83f206043f94ccfe65901 (diff)
downloadlibinput-93135c201223c2e8f6a66ba1f0d95b1022f51790.tar.gz
filter: add scroll movement type to the custom acceleration profile
Adds a dedicated scroll movement type to the custom acceleration profile. Supported by physical mouse and touchpad. Other profiles remain the same by using the same unaccelerated filter for the scroll filter. Signed-off-by: Yinon Burgansky <51504-Yinon@users.noreply.gitlab.freedesktop.org>
Diffstat (limited to 'src/evdev-fallback.c')
-rw-r--r--src/evdev-fallback.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/evdev-fallback.c b/src/evdev-fallback.c
index d591928a..ae33d45a 100644
--- a/src/evdev-fallback.c
+++ b/src/evdev-fallback.c
@@ -113,10 +113,10 @@ post_button_scroll(struct evdev_device *device,
case BUTTONSCROLL_SCROLLING:
{
const struct normalized_coords normalized =
- filter_dispatch_constant(device->pointer.filter,
- &raw,
- device,
- time);
+ filter_dispatch_scroll(device->pointer.filter,
+ &raw,
+ device,
+ time);
evdev_post_scroll(device, time,
LIBINPUT_POINTER_AXIS_SOURCE_CONTINUOUS,
&normalized);