From a1c50194a9ce56f830800fea04cf7aa680c70680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Date: Mon, 20 Sep 2021 19:53:11 +0200 Subject: [PATCH] backends/native: Migrate continuous scroll In order to get the delta X/Y value of the LIBINPUT_EVENT_POINTER_SCROLL_FINGER or LIBINPUT_EVENT_POINTER_SCROLL_CONTINUOUS events the new function libinput_event_pointer_get_scroll_value should be used instead of libinput_event_pointer_get_axis_value. Part-of: --- src/backends/native/meta-seat-impl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/native/meta-seat-impl.c b/src/backends/native/meta-seat-impl.c index 2bb721be6..6f3380691 100644 --- a/src/backends/native/meta-seat-impl.c +++ b/src/backends/native/meta-seat-impl.c @@ -1895,7 +1895,7 @@ notify_continuous_axis (MetaSeatImpl *seat_impl, if (libinput_event_pointer_has_axis (axis_event, LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL)) { - dx = libinput_event_pointer_get_axis_value ( + dx = libinput_event_pointer_get_scroll_value ( axis_event, LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL); if (fabs (dx) < DBL_EPSILON) @@ -1904,7 +1904,7 @@ notify_continuous_axis (MetaSeatImpl *seat_impl, if (libinput_event_pointer_has_axis (axis_event, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL)) { - dy = libinput_event_pointer_get_axis_value ( + dy = libinput_event_pointer_get_scroll_value ( axis_event, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL); if (fabs (dy) < DBL_EPSILON)