summaryrefslogtreecommitdiff
path: root/src/evdev-mt-touchpad-gestures.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-mt-touchpad-gestures.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-mt-touchpad-gestures.c')
-rw-r--r--src/evdev-mt-touchpad-gestures.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evdev-mt-touchpad-gestures.c b/src/evdev-mt-touchpad-gestures.c
index 08c93616..ad11c262 100644
--- a/src/evdev-mt-touchpad-gestures.c
+++ b/src/evdev-mt-touchpad-gestures.c
@@ -1176,8 +1176,8 @@ tp_gesture_handle_state_scroll(struct tp_dispatch *tp, uint64_t time)
raw = tp_get_average_touches_delta(tp);
- /* scroll is not accelerated */
- delta = tp_filter_motion_unaccelerated(tp, &raw, time);
+ /* scroll is not accelerated by default */
+ delta = tp_filter_scroll(tp, &raw, time);
if (normalized_is_zero(delta))
return;