From b54881ef4178fdc93d71e1a7d416ee355ae496d3 Mon Sep 17 00:00:00 2001 From: dpgraham Date: Fri, 8 Jun 2018 14:38:25 -0700 Subject: [PATCH] Use absolute coordinates for 'swipe' --- CHANGELOG.md | 3 ++- app/renderer/components/Inspector/HighlighterRects.js | 2 +- app/renderer/components/Inspector/Screenshot.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25fecabc6..66bf2eee1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ -## [1.6.2](https://github.com/appium/appium-desktop/compare/v1.6.2...v1.6.1) (2018-06-07) +## [1.6.2](https://github.com/appium/appium-desktop/compare/v1.6.2...v1.6.1) (2018-06-08) ### Changes * Feature: Upgrade to Appium 1.8.1 +* Fix: Use absolute coordinates for 'swipe' ## [1.6.1](https://github.com/appium/appium-desktop/compare/v1.6.1...v1.5.0) (2018-05-08) diff --git a/app/renderer/components/Inspector/HighlighterRects.js b/app/renderer/components/Inspector/HighlighterRects.js index 436895115..3c94314db 100644 --- a/app/renderer/components/Inspector/HighlighterRects.js +++ b/app/renderer/components/Inspector/HighlighterRects.js @@ -81,7 +81,7 @@ export default class HighlighterRects extends Component { const {swipeStart, swipeEnd, clearSwipeAction, applyClientMethod} = this.props; await applyClientMethod({ methodName: 'swipe', - args: [swipeStart.x, swipeStart.y, swipeEnd.x - swipeStart.x, swipeEnd.y - swipeStart.y], + args: [swipeStart.x, swipeStart.y, swipeEnd.x, swipeEnd.y], }); clearSwipeAction(); } diff --git a/app/renderer/components/Inspector/Screenshot.js b/app/renderer/components/Inspector/Screenshot.js index 90cb7ee8a..1fd3a33b3 100644 --- a/app/renderer/components/Inspector/Screenshot.js +++ b/app/renderer/components/Inspector/Screenshot.js @@ -84,7 +84,7 @@ export default class Screenshot extends Component { const {swipeStart, swipeEnd, clearSwipeAction, applyClientMethod} = this.props; await applyClientMethod({ methodName: 'swipe', - args: [swipeStart.x, swipeStart.y, swipeEnd.x - swipeStart.x, swipeEnd.y - swipeStart.y], + args: [swipeStart.x, swipeStart.y, swipeEnd.x, swipeEnd.y], }); clearSwipeAction(); }