The test is supposed to make sure no motion event is sent and that scrolling
continues once leaving the edge. It does so by moving down the edge, into the
touchpad, then down further. The move from the edge into the touchpad had a
vertical component to it though and could cause the scroll minimum test to
fail. This is currently covered up by the delta calculations though, but fix
it anyway.

Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
---
 test/touchpad.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/touchpad.c b/test/touchpad.c
index 9a4aa6c..cdc261b 100644
--- a/test/touchpad.c
+++ b/test/touchpad.c
@@ -664,9 +664,9 @@ START_TEST(touchpad_edge_scroll_no_motion)
        litest_touch_down(dev, 0, 99, 10);
        litest_touch_move_to(dev, 0, 99, 10, 99, 70, 12, 0);
        /* moving outside -> no motion event */
-       litest_touch_move_to(dev, 0, 99, 70, 20, 80, 12, 0);
+       litest_touch_move_to(dev, 0, 99, 70, 20, 70, 12, 0);
        /* moving down outside edge once scrolling had started -> scroll */
-       litest_touch_move_to(dev, 0, 20, 80, 40, 99, 12, 0);
+       litest_touch_move_to(dev, 0, 20, 70, 40, 99, 12, 0);
        litest_touch_up(dev, 0);
        libinput_dispatch(li);
 
-- 
2.9.3

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to