Skip to content

Commit

Permalink
Merge pull request #27 from GMAAutomation/fix-iosswipe
Browse files Browse the repository at this point in the history
fix(appium): swipe logic for iOS should use absolute coordinates
  • Loading branch information
adrianth authored Sep 6, 2018
2 parents 5340018 + 129cc96 commit 486848d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ protected void swipe(int fromX, int fromY, int toX, int toY) {
}

protected void swipe(int fromX, int fromY, int toX, int toY, int durationMs) {
if (AppiumHelper.isPlatform("ios") && AppiumHelper.getConfig().getBoolean("appium.useRelativeCoordsIos", true)) {
if (AppiumHelper.isPlatform("ios") && AppiumHelper.getConfig().getBoolean("appium.useRelativeCoordsIos", false)) {
// In Appium 1.7.1, the TouchAction.moveTo() method assumes absolute
// coordinates for Android but relative coordinates for iOS. The mess that
// follows below is necessary to work around this inconsistency.
Expand Down

0 comments on commit 486848d

Please sign in to comment.