touchpad: require minimum scroll distance and lock scroll direction
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 14 Feb 2014 02:31:26 +0000 (12:31 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 24 Mar 2014 04:56:41 +0000 (14:56 +1000)
commitc1a9b24a0a4e9bf5512f85bfe29aeae45084bc43
tree6df8ea9b403cadb0d89124cb5bf8a25a6c9676cf
parent0d759edc3f77c99f5940ddb5c5956db31d17c5ed
touchpad: require minimum scroll distance and lock scroll direction

This is a fairly rough approach, but can be handled more fine-grained later.
Require a minimum of 1 unit to start scrolling and lock the scrolling in the
initial direction, so further scroll events are limited to that direction
only.

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