touchpad: Drop the scroll direction lock, increase threshold instead
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 23 May 2014 14:06:26 +0000 (16:06 +0200)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 4 Jun 2014 21:58:16 +0000 (07:58 +1000)
commit82438a2cf6b147e160fabdf8f5d97161965da39a
tree3e19c6f47733a8e15cb22b1cf62afb1f01988ddb
parentfd27450ae05a839ab65c7df6a5e6af6e775d3c3c
touchpad: Drop the scroll direction lock, increase threshold instead

The direction lock was intended to avoid erroneous horizontal scroll events
when scrolling vertically (and vice versa). Some testing on my touchpad here
shows that it is too easy to accidentally lock the direction when no lock is
intended (e.g. moving around an image). And quite hard to figure out what a
pure vertical gesture is.

I get movements from 90 degrees to 70 degrees for something my brain would
consider vertical scrolling. Depending on the hand position, the fingers
actually perform a slight curve, not a straight line.

Hence - drop the direction lock, but increase the threshold a little. It
doesn't totally avoid horizontal scroll events but keeps them minimal.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/evdev-mt-touchpad.c