On a button click / tap the scrolling event handler no longer gets called, ensure that any in progress scrolling is stopped.
Signed-off-by: Hans de Goede <hdego...@redhat.com> --- src/evdev-mt-touchpad.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index ed668ee..f28cd13 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -549,11 +549,15 @@ tp_post_events(struct tp_dispatch *tp, uint64_t time) struct tp_touch *t = tp_current_touch(tp); double dx, dy; - if (tp_post_button_events(tp, time) != 0) + if (tp_post_button_events(tp, time) != 0) { + tp_stop_scroll_events(tp, time); return; + } - if (tp_tap_handle_state(tp, time) != 0) + if (tp_tap_handle_state(tp, time) != 0) { + tp_stop_scroll_events(tp, time); return; + } if (tp_post_scroll_events(tp, time) != 0) return; -- 1.9.3 _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel