mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-07 18:10:15 +01:00
test: push/pop event frames around three-touch movements
Without this, each finger movement happens in a different evdev event frame. Since we average deltas for gestures, this messes with the expected data. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
dee0e5e725
commit
1d9cdf76a5
1 changed files with 2 additions and 0 deletions
|
|
@ -2580,9 +2580,11 @@ litest_touch_move_three_touches(struct litest_device *d,
|
|||
double step_x = dx / steps * i;
|
||||
double step_y = dy / steps * i;
|
||||
|
||||
litest_push_event_frame(d);
|
||||
litest_touch_move(d, 0, x0 + step_x, y0 + step_y);
|
||||
litest_touch_move(d, 1, x1 + step_x, y1 + step_y);
|
||||
litest_touch_move(d, 2, x2 + step_x, y2 + step_y);
|
||||
litest_pop_event_frame(d);
|
||||
|
||||
libinput_dispatch(d->libinput);
|
||||
msleep(sleep_ms);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue