We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97cd758 commit cdd09d5Copy full SHA for cdd09d5
lib/mouse.class.ts
@@ -2,7 +2,7 @@ import { NativeAdapter } from "./adapter/native.adapter.class";
2
import { Button } from "./button.enum";
3
import { linear } from "./movementtype.function";
4
import { Point } from "./point.class";
5
-import { sleep } from "./sleep.function";
+import { busyWaitForNanoSeconds, sleep } from "./sleep.function";
6
7
export class Mouse {
8
public config = {
@@ -37,7 +37,7 @@ export class Mouse {
37
for (let idx = 0; idx < pathSteps.length; ++idx) {
38
const node = pathSteps[idx];
39
const minTime = timeSteps[idx];
40
- await sleep(minTime);
+ await busyWaitForNanoSeconds(minTime);
41
await this.native.setMousePosition(node);
42
}
43
resolve(this);
0 commit comments