mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 14:40:26 +01:00
touchpad: Refactor tp_post_scroll_events()
Put the actual scroll event posting in the straight path. 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
ecb132fef6
commit
8d41230d65
1 changed files with 4 additions and 4 deletions
|
|
@ -536,11 +536,11 @@ tp_post_scroll_events(struct tp_dispatch *tp, uint64_t time)
|
|||
|
||||
if (nfingers_down != 2) {
|
||||
tp_stop_scroll_events(tp, time);
|
||||
} else {
|
||||
tp_post_twofinger_scroll(tp, time);
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
|
||||
tp_post_twofinger_scroll(tp, time);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue