diff options
author | Yinon Burgansky <yinonburgansky@gmail.com> | 2023-02-18 21:12:13 +0200 |
---|---|---|
committer | Yinon Burgansky <yinonburgansky@gmail.com> | 2023-02-24 13:01:34 +0200 |
commit | 93135c201223c2e8f6a66ba1f0d95b1022f51790 (patch) | |
tree | c1c01f6e623038124a472ab1eb7ee31af30e4287 /src/evdev-wheel.c | |
parent | 6c88d9a251644c99ebb83f206043f94ccfe65901 (diff) | |
download | libinput-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.c | 8 |
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, |