RotationGestureHandler
A continuous gesture handler that recognizes rotation gesture and allows for tracking its movement.
The handler activates when fingers are placed on the screen and change their position in a proper way. Gesture callback can be used for continuous tracking of the rotation gesture. It provides information about the rotation, anchor (focal) point of gesture and progress of rotating.
The handler is implemented using UIRotationGestureRecognizer on iOS and from scratch on Android.
Properties
Properties provided to RotationGestureHandler
do not extend common set of properties from base handler class.
Event data
See set of event attributes from base handler class. Below is a list of gesture event attributes specific to RotationGestureHandler
:
rotation
The rotation of the gesture in radians.
velocity
Velocity of the pan gesture the current moment. The value is expressed in point units per second.
anchorX
Position expressed in points along X axis of center anchor point of gesture
anchorY
Position expressed in points along Y axis of center anchor point of gesture
Example
See the scale and rotation example from GestureHandler Example App or view it directly on your phone by visiting our expo demo.