touchpad: fix tapping that happens after a moving thumb
authorFriedrich Schöller <code@schoeller.se>
Sat, 5 May 2018 01:49:32 +0000 (03:49 +0200)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 10 May 2018 04:35:54 +0000 (14:35 +1000)
commitaf86152370b9f2ff15d3adb5e0590da7fb64e7cf
tree44507aac49044416212b2b6f2d3fc33275d2f79c
parentcdebfc78ff74347c9ae51070bb6b02364b6a22f1
touchpad: fix tapping that happens after a moving thumb

When finger movement exceeded the motion threshold before the finger was
recognized as a thumb, it would never be regarded as a thumb by the tap system.
This prohibited tapping until the thumb was lifted.

This is fixed by moving the check for the thumb state up such that it
happens before the motion threshold check.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad-tap.c
test/test-touchpad.c