If both v/h scroll axes change, users may process both changes at once when
this event is received.

Signed-off-by: Carlos Garnacho <carl...@gnome.org>
---
 src/evdev-touchpad.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/evdev-touchpad.c b/src/evdev-touchpad.c
index 1a48441..7312d11 100644
--- a/src/evdev-touchpad.c
+++ b/src/evdev-touchpad.c
@@ -552,6 +552,9 @@ touchpad_update_state(struct touchpad_dispatch *touchpad, 
uint32_t time)
                                        time,
                                        LIBINPUT_POINTER_AXIS_VERTICAL_SCROLL,
                                        li_fixed_from_double(dy));
+
+                       if (dx != 0.0 || dy != 0.0)
+                               pointer_notify_axis_frame(base, time);
                }
        }
 
-- 
1.9.0

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to