A callback that receives the drag gesture state throughout the gesture lifecycle.
Configuration options for the drag gesture.
Support
Usage
Basic drag tracking
With minimum distance
Require a longer drag before recognition to avoid interfering with taps.Swipe detection using velocity
Notes
- The gesture callback fires for every phase:
"possible","began","changed","ended", and"cancelled". translationis cumulative from the initial touch point, not a per-frame delta.velocityis in points per second and is useful for flick/swipe detection.
See Also
- onTapGesture — detects tap gestures
- onLongPressGesture — detects long press gestures