mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 12:20:26 +01:00
test: fix missing SYN_REPORT events between events
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1187>
This commit is contained in:
parent
95406b2182
commit
42c685dbb0
1 changed files with 3 additions and 0 deletions
|
|
@ -847,6 +847,7 @@ START_TEST(pointer_scroll_wheel_inhibit_small_deltas)
|
|||
|
||||
/* Scroll deltas below the threshold (60) must be ignored */
|
||||
litest_event(dev, EV_REL, REL_WHEEL_HI_RES, 15);
|
||||
litest_event(dev, EV_SYN, SYN_REPORT, 0);
|
||||
litest_event(dev, EV_REL, REL_WHEEL_HI_RES, 15);
|
||||
litest_event(dev, EV_SYN, SYN_REPORT, 0);
|
||||
litest_dispatch(li);
|
||||
|
|
@ -868,12 +869,14 @@ START_TEST(pointer_scroll_wheel_inhibit_small_deltas)
|
|||
litest_timeout_wheel_scroll(li);
|
||||
|
||||
litest_event(dev, EV_REL, REL_WHEEL_HI_RES, -15);
|
||||
litest_event(dev, EV_SYN, SYN_REPORT, 0);
|
||||
litest_event(dev, EV_REL, REL_WHEEL_HI_RES, -15);
|
||||
litest_event(dev, EV_SYN, SYN_REPORT, 0);
|
||||
litest_dispatch(li);
|
||||
litest_assert_empty_queue(li);
|
||||
|
||||
litest_event(dev, EV_REL, REL_HWHEEL_HI_RES, 15);
|
||||
litest_event(dev, EV_SYN, SYN_REPORT, 0);
|
||||
litest_event(dev, EV_REL, REL_HWHEEL_HI_RES, 15);
|
||||
litest_event(dev, EV_SYN, SYN_REPORT, 0);
|
||||
litest_dispatch(li);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue