mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 11:10:29 +01:00
test: add a 10ms delay for scrolling tests
No touchpad gives us these events with a 0 delay, so let's not test for that. This is required for adding timing-sensitive scroll code, see https://gitlab.freedesktop.org/libinput/libinput/issues/101. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
531b1bf8de
commit
28fc00b5f7
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ test_2fg_scroll(struct litest_device *dev, double dx, double dy, bool want_sleep
|
|||
litest_touch_down(dev, 0, 49, 50);
|
||||
litest_touch_down(dev, 1, 51, 50);
|
||||
|
||||
litest_touch_move_two_touches(dev, 49, 50, 51, 50, dx, dy, 10, 0);
|
||||
litest_touch_move_two_touches(dev, 49, 50, 51, 50, dx, dy, 10, 10);
|
||||
|
||||
/* Avoid a small scroll being seen as a tap */
|
||||
if (want_sleep) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue