Skip to content

Commit

Permalink
touchMove must receive an integer; fixed moveToObject to round locati…
Browse files Browse the repository at this point in the history
…ons to an integer before attempting pass to touchMove
  • Loading branch information
jbterry authored and christian-bromann committed Nov 9, 2018
1 parent b8cedef commit 544badd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/moveToObject.js
Expand Up @@ -47,7 +47,7 @@ let moveToObject = function (selector, xoffset, yoffset) {
y = res.location.value.y + yoffset
}

return this.touchMove(x, y)
return this.touchMove(Math.round(x), Math.round(y))
})
}

Expand Down

0 comments on commit 544badd

Please sign in to comment.