Draggable

Discussion thread Status
N/A Stable
Android Apple Web
Milestone Milestone Milestone  

Overview

Enables an element to be dragged.

Contract

Delta x and y from the given gesture recognizer are added to the target's position.x and position.y. If no gesture recognizer is provided, then one is created.

Plan Draggable {
  GestureRecognizer panGestureRecognizer?
  Bool shouldAdjustAnchorPointOnGestureStart = false
}

Performer considerations

If shouldAdjustAnchorPointOnGestureStart is true, then ChangeAnchorPoint is emitted when the gesture recognizer starts.

results matching ""

    No results matching ""