mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 05:50:26 +01:00
touchpad: reset the wobble detection for non-pointer events
If we get an event other than a motion event we're not wobbling so we need to reset and restart. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
be69bcef2c
commit
9c3a597aab
1 changed files with 6 additions and 1 deletions
|
|
@ -155,9 +155,14 @@ tp_detect_wobbling(struct tp_dispatch *tp,
|
|||
int dx, dy;
|
||||
uint64_t dtime;
|
||||
|
||||
if (!(tp->queued & TOUCHPAD_EVENT_MOTION) || tp->hysteresis.enabled)
|
||||
if (tp->hysteresis.enabled)
|
||||
return;
|
||||
|
||||
if (!(tp->queued & TOUCHPAD_EVENT_MOTION)) {
|
||||
t->hysteresis.x_motion_history = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
if (t->last_point.x == 0) { /* first invocation */
|
||||
dx = 0;
|
||||
dy = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue