summaryrefslogtreecommitdiff
path: root/src/evdev-wheel.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-wheel.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-wheel.c')
-rw-r--r--src/evdev-wheel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/evdev-wheel.c b/src/evdev-wheel.c
index 7276ec1a..2381cb77 100644
--- a/src/evdev-wheel.c
+++ b/src/evdev-wheel.c
@@ -196,10 +196,10 @@ wheel_flush_scroll(struct fallback_dispatch *dispatch,
.y = dispatch->wheel.lo_res.y * -1,
};
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,