mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-25 18:50:47 +01:00
test: reduce sideways-component in two-finger scroll test
This breaks when we have a device resolution set on the test devices, specificially on the T440. The current tests use a delta of 1% of the device which with the resolution set results in an effective delta of 3 - above the scroll threshold. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
489630f58b
commit
475665efdf
1 changed files with 4 additions and 6 deletions
|
|
@ -1198,15 +1198,13 @@ START_TEST(touchpad_2fg_scroll)
|
|||
|
||||
litest_drain_events(li);
|
||||
|
||||
/* Note this mixes in a tiny amount of movement in the wrong direction,
|
||||
which should be ignored */
|
||||
test_2fg_scroll(dev, 1, 40, 0);
|
||||
test_2fg_scroll(dev, 0.1, 40, 0);
|
||||
check_2fg_scroll(dev, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL, 10);
|
||||
test_2fg_scroll(dev, 1, -40, 0);
|
||||
test_2fg_scroll(dev, 0.1, -40, 0);
|
||||
check_2fg_scroll(dev, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL, -10);
|
||||
test_2fg_scroll(dev, 40, 1, 0);
|
||||
test_2fg_scroll(dev, 40, 0.1, 0);
|
||||
check_2fg_scroll(dev, LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL, 10);
|
||||
test_2fg_scroll(dev, -40, 1, 0);
|
||||
test_2fg_scroll(dev, -40, 0.1, 0);
|
||||
check_2fg_scroll(dev, LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL, -10);
|
||||
|
||||
/* 2fg scroll smaller than the threshold should not generate events */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue