libinput/test
Peter Hutterer 2bbf4a0117 evdev: use distance triggers to start scrolling
The previous code used delta/event as scroll trigger which roughly translates
to speed, but depends on the sampling rate of the device.

For slow two-finger motion, a user may move the height of the touchpad without
ever triggering scrolling. Change the _initial_ trigger to a cumulative
trigger, i.e. once the user moved past the threshold distance, scrolling
starts regardless of the speed.

Once scrolling is engaged, the original trigger of threshold/event is
required to engange the second scroll direction.

Note that except for really slow movements, it's very easy to engage both
scroll directions on a touchpad. This is intentional, libinput does not have
enough semantic knowledge to know if horizontal scrolling is needed. So we
provide some direction locking but not much, it's up to the
client/toolkit/widget to decide if both scroll directions should be handled.
Add a comment to clarify that in the public doc.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2014-11-11 10:00:56 +10:00
..
50-litest.conf test: Prefix litest created device names with litest 2014-06-25 11:11:45 +10:00
build-cxx.cc test: Add include from C++ build test 2014-03-29 00:51:44 +01:00
build-pedantic.c test: add a build-test for -pedantic 2014-01-15 11:26:08 +10:00
device.c test: rename LITEST_POINTER to LITEST_RELATIVE 2014-11-11 09:55:42 +10:00
keyboard.c evdev: Release still pressed keys/buttons when removing device 2014-08-18 22:41:16 +02:00
litest-alps-semi-mt.c litest-alps-semi-mt: Fix compiler warnings 2014-09-03 13:33:20 +10:00
litest-bcm5974.c test: auto-update for BTN_TOOL_* when using litest_touch_ functions 2014-07-23 15:08:15 +10:00
litest-generic-singletouch.c test: add a generic single-touch device 2014-08-26 13:49:16 +10:00
litest-int.h test: add a semi-mt Alps test device 2014-08-04 20:21:03 +10:00
litest-keyboard.c style fix: Remove duplicate empty lines 2014-07-22 09:00:45 +10:00
litest-mouse.c test: rename LITEST_POINTER to LITEST_RELATIVE 2014-11-11 09:55:42 +10:00
litest-ms-surface-cover.c test: rename LITEST_POINTER to LITEST_RELATIVE 2014-11-11 09:55:42 +10:00
litest-qemu-usb-tablet.c test: add QEMU tablet as test device 2014-11-11 09:55:42 +10:00
litest-synaptics-st.c test: auto-update for BTN_TOOL_* when using litest_touch_ functions 2014-07-23 15:08:15 +10:00
litest-synaptics-t440.c test: auto-update for BTN_TOOL_* when using litest_touch_ functions 2014-07-23 15:08:15 +10:00
litest-synaptics.c test: auto-update for BTN_TOOL_* when using litest_touch_ functions 2014-07-23 15:08:15 +10:00
litest-trackpoint.c test: rename LITEST_POINTER to LITEST_RELATIVE 2014-11-11 09:55:42 +10:00
litest-vmware-virtual-usb-mouse.c test: add VMWare Virtual USB Mouse device 2014-11-11 09:55:42 +10:00
litest-wacom-touch.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest-xen-virtual-pointer.c test: add Xen Virtual Pointer device 2014-11-11 09:55:42 +10:00
litest.c test: rename a parameter to litest_assert_scroll() 2014-11-11 10:00:55 +10:00
litest.h test: rename a parameter to litest_assert_scroll() 2014-11-11 10:00:55 +10:00
log.c Merge branch 'ref-counting-context' 2014-06-25 10:32:42 +10:00
Makefile.am test: add VMWare Virtual USB Mouse device 2014-11-11 09:55:42 +10:00
misc.c util: introduce ratelimit helpers 2014-11-07 08:30:50 +10:00
path.c test: Use only one test device for some udev and path tests 2014-08-18 22:35:19 +02:00
pointer.c test: add test for absolute pointer motion 2014-11-11 09:55:42 +10:00
touch.c Merge branch 'for-peter' of git://people.freedesktop.org/~jwrdegoede/libinput 2014-11-07 11:03:12 +10:00
touchpad.c evdev: use distance triggers to start scrolling 2014-11-11 10:00:56 +10:00
trackpoint.c test: Add trackpoint middlebutton scrolling tests 2014-09-22 10:59:29 +10:00
udev.c test: Use only one test device for some udev and path tests 2014-08-18 22:35:19 +02:00
valgrind.suppressions test: automatically run the tests against valgrind for leaks 2014-04-10 11:11:56 +10:00