Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix: Swipe by Coordinates using delay (#4268) (#1090)
Browse files Browse the repository at this point in the history
Fix swipe command by adding a 500ms wait between press and moveTo
  • Loading branch information
ZGrauer authored and dpgraham committed Sep 25, 2019
1 parent 0c837ce commit a9994a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/main/appium-method-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export default class AppiumMethodHandler {
const [startX, startY, endX, endY] = args;
res = await (new wd.TouchAction(this.driver))
.press({x: startX, y: startY})
.wait(500)
.moveTo({x: endX, y: endY})
.release()
.perform();
Expand Down

0 comments on commit a9994a0

Please sign in to comment.