mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-09 14:30:17 +01:00
test: fix the litest_touch_move_to() step counter
We were undercounting by one, causing a slight jump by (step-distance * 2) on the last event. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
e0c0db22e4
commit
7a7595e044
1 changed files with 1 additions and 1 deletions
|
|
@ -1866,7 +1866,7 @@ litest_touch_move_to(struct litest_device *d,
|
|||
double x_to, double y_to,
|
||||
int steps, int sleep_ms)
|
||||
{
|
||||
for (int i = 1; i < steps - 1; i++) {
|
||||
for (int i = 1; i < steps; i++) {
|
||||
litest_touch_move(d, slot,
|
||||
x_from + (x_to - x_from)/steps * i,
|
||||
y_from + (y_to - y_from)/steps * i);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue