mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-10 23:20:17 +01:00
test: Don't send two motion events when button scrolling
Button scrolling motion events don't pass through the acceleration filter so no need to assume the initial event will be absorbed. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
93eca929ae
commit
3b4d8509cc
1 changed files with 0 additions and 6 deletions
|
|
@ -810,12 +810,6 @@ litest_button_scroll(struct litest_device *dev,
|
|||
litest_timeout_buttonscroll();
|
||||
libinput_dispatch(li);
|
||||
|
||||
/* Send two deltas, as the first one may be eaten up by an
|
||||
* acceleration filter. */
|
||||
litest_event(dev, EV_REL, REL_X, dx);
|
||||
litest_event(dev, EV_REL, REL_Y, dy);
|
||||
litest_event(dev, EV_SYN, SYN_REPORT, 0);
|
||||
|
||||
litest_event(dev, EV_REL, REL_X, dx);
|
||||
litest_event(dev, EV_REL, REL_Y, dy);
|
||||
litest_event(dev, EV_SYN, SYN_REPORT, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue