and the documentation says
// speed is in pixels/second
We have to travel a distance of sqrt((161-41)*(161-41) + (161-41)*(161-41)) = 120 pixels
Since we told it we want to travel at 4 pixels per second, the total time has to be 30 seconds, since we told it we wan 20 iterations, it'll wait 1.5 seconds between mouse moves.
So previously was broken and now does what it was told to do.
I don't see the bug (other than the mouseFlick call being wrong at passing such a slow speed if you want)
On my machine
We're calling fakeWindow, 161, 161, 41, 41, true/*pressMouse*/, true/*releaseMo use*/, 4/*speed*/, 20/*iterations*/);
mouseFlick(
and the documentation says
// speed is in pixels/second
We have to travel a distance of sqrt((161- 41)*(161- 41) + (161-41)*(161-41)) = 120 pixels
Since we told it we want to travel at 4 pixels per second, the total time has to be 30 seconds, since we told it we wan 20 iterations, it'll wait 1.5 seconds between mouse moves.
So previously was broken and now does what it was told to do.
I don't see the bug (other than the mouseFlick call being wrong at passing such a slow speed if you want)