View Source Improve this doc

rotate

Perform a rotation gesture centered on the specified element.

Usage

1
2
browser.rotate(x,y,duration,radius,rotation,touchCount);

Parameters

Param Type Details
x Number x offset to use for the center of the rotate gesture (default 0)
y Number y offset to use for the center of the rotate gesture (default 0)
duration Number The length of hold time for the specified gesture, in seconds. (default 1)
radius Number The distance in points from the center to the edge of the circular path.
rotation Number The length of rotation in radians. (default pi (π))
touchCount Number The number of touches to use in the specified gesture. (Effectively, the number of fingers a user would use to make the specified gesture.) Valid values are 1 to 5. (default 2)

Example

rotate.js
1
browser.rotate(114, 198);

Support

Support for ios