touchpad: only try to detect touchpad wobbling with one finger down

Too many touches are unreliable with 2+ fingers down and we should error on
the side of not detecting wobbling.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-04-24 15:57:04 +10:00
parent 9c3a597aab
commit 30a398591b

View file

@ -155,6 +155,10 @@ tp_detect_wobbling(struct tp_dispatch *tp,
int dx, dy;
uint64_t dtime;
if (tp->nfingers_down == 1 &&
tp->nfingers_down == tp->old_nfingers_down)
return;
if (tp->hysteresis.enabled)
return;