gestures: Improve thumb detection, allow one finger scroll
authorMatt Mayfield <mdmayfield@users.noreply.github.com>
Fri, 31 Aug 2018 02:29:46 +0000 (21:29 -0500)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 15 Jul 2019 03:08:47 +0000 (13:08 +1000)
commit15c8613a653526db17af713e18f6a90f6cae3b80
tree80970dda054cd1287eeb58e8ab703bdca0c4f521
parent1dae79c833c202d7b6782b63fe295027450b0ebe
gestures: Improve thumb detection, allow one finger scroll

Check if there's a thumb if we have two touches. If one finger moves but
the thumb remains still, we assume that one is really a thumb. But if the
thumb moves while the finger is still, let's assume this is a 2-finger scroll.

Extracted from Matt Mayfield's thumb detection patchset
src/evdev-mt-touchpad-gestures.c