mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-05 06:20:26 +01:00
touchpad: Only move the pointer when there's a single finger down
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c1a9b24a0a
commit
8ea5cb75c1
1 changed files with 2 additions and 1 deletions
|
|
@ -416,7 +416,8 @@ tp_post_events(struct tp_dispatch *tp, uint32_t time)
|
|||
if (tp_post_scroll_events(tp, time) != 0)
|
||||
return;
|
||||
|
||||
if (t->history.count >= TOUCHPAD_MIN_SAMPLES) {
|
||||
if (t->history.count >= TOUCHPAD_MIN_SAMPLES &&
|
||||
tp->nfingers_down == 1) {
|
||||
tp_get_delta(t, &dx, &dy);
|
||||
tp_filter_motion(tp, &dx, &dy, time);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue