Skip to content

Commit 0721b56

Browse files
committed
Merge pull request appium#136 from alewang/alewang/touch-action-doc
Update documentation for moveTo
2 parents c3e30d7 + d7874ca commit 0721b56

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/java/io/appium/java_client/TouchAction.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,11 @@ public TouchAction moveTo(WebElement el) {
105105
}
106106

107107
/**
108-
* Move current touch to an absolute position on the screen
109-
* @param x x coordinate
110-
* @param y y coordinate
108+
* Move current touch to a new position relative to the current position on
109+
* the screen. If the current position of this TouchAction is (xOld, yOld),
110+
* then this method will move the TouchAction to (xOld + x, yOld + y).
111+
* @param x change in x coordinate to move through
112+
* @param y change in y coordinate to move through
111113
* @return this TouchAction, for chaining
112114
*/
113115
public TouchAction moveTo(int x, int y) {

0 commit comments

Comments
 (0)