libinput/test
Hans de Goede c0af1b57d4 touchpad: Avoid spurious motion event for scroll movement below threshold
If the user puts down to fingers to scroll, then changes his mind and
lifts them, without having them moved past the initial scroll threshold in
either direction, then any movement which he has done will cause a spurious
scroll event when the second finger down is lifted first.

The problem is that t->is_pointer was not being set to false in this case,
since that is done in tp_post_twofinger_scroll after checking scroll.state
which never gets set in this scenario.

Instead of changing the order, simply completely remove scroll.state completely
it is a boolean, and everywhere we check for it we also check for the axis bits
in state.direction, so it is not necessary.

Also add a check to ensure there are no spurious motion events.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-06-25 11:11:39 +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
keyboard.c Merge branch 'ref-counting-context' 2014-06-25 10:32:42 +10:00
litest-bcm5974.c test: add a bunch of test for click behavior on touchpads 2014-06-12 10:29:26 +10:00
litest-int.h test: allow for description-based test devices 2014-04-08 15:07:02 +10:00
litest-keyboard.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest-mouse.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest-synaptics-st.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest-synaptics-t440.c test: Add description for the T440 synaptics touchpad 2014-06-12 10:29:26 +10:00
litest-synaptics.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest-trackpoint.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest-wacom-touch.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest.c Merge branch 'ref-counting-context' 2014-06-25 10:32:42 +10:00
litest.h test: Add description for the T440 synaptics touchpad 2014-06-12 10:29:26 +10:00
log.c Merge branch 'ref-counting-context' 2014-06-25 10:32:42 +10:00
Makefile.am test: Add description for the T440 synaptics touchpad 2014-06-12 10:29:26 +10:00
misc.c test: Add context reference counting test 2014-06-25 10:27:03 +10:00
path.c Make context reference counted 2014-06-25 10:27:03 +10:00
pointer.c Make context reference counted 2014-06-25 10:27:03 +10:00
touch.c Use floating point numbers instead of fixed point numbers 2014-06-09 20:46:53 +02:00
touchpad.c touchpad: Avoid spurious motion event for scroll movement below threshold 2014-06-25 11:11:39 +10:00
udev.c Merge branch 'ref-counting-context' 2014-06-25 10:32:42 +10:00
valgrind.suppressions test: automatically run the tests against valgrind for leaks 2014-04-10 11:11:56 +10:00