Capítulo 219 de 411

Chapter 219: Draggable.startDrag()

Core Idea

Forces the Draggable to begin dragging programmatically, using a supplied mouse/touch/pointer event to know where the drag starts.

Reference Tables

ParameterTypeDescription
eventObjectmouse/touch/pointer event, needed to measure distances and the starting point
alignBooleanif true, snaps the target to the pointer immediately when the target isn't already under it

Connects To

  • Draggable.endDrag(): the corresponding programmatic stop.