mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-22 09:50:28 +01:00
touchpad: Stop scrolling on a button click / tap
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 <hdegoede@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
8d41230d65
commit
bdb13fd1d3
1 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue