mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 09:20:07 +01:00
test: fix edge-scroll no-motion test
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.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
63409a6938
commit
4fe85b736a
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue