Skip to content

Commit 55632bc

Browse files
committed
(#499) Extend mouse.move to handle single point inputs
1 parent 809e094 commit 55632bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/mouse.class.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ export class MouseClass {
9090
): Promise<MouseClass> {
9191
return new Promise<MouseClass>(async (resolve, reject) => {
9292
try {
93-
const pathSteps = await path;
93+
let pathSteps = await path;
94+
if (!Array.isArray(pathSteps)) {
95+
pathSteps = [pathSteps];
96+
}
9497
this.providerRegistry
9598
.getLogProvider()
9699
.info(

0 commit comments

Comments
 (0)