diff --git a/src/common/Input.ts b/src/common/Input.ts index 31237062..c568856a 100644 --- a/src/common/Input.ts +++ b/src/common/Input.ts @@ -409,15 +409,14 @@ export class Mouse { ): Promise { const { delay = null } = options; if (delay !== null) { - await Promise.all([this.move(x, y), this.down(options)]); + await this.move(x, y); + await this.down(options); await new Promise((f) => setTimeout(f, delay)); await this.up(options); } else { - await Promise.all([ - this.move(x, y), - this.down(options), - this.up(options), - ]); + await this.move(x, y); + await this.down(options); + await this.up(options); } }