Capítulo 191 de 411
Registers a callback for a Draggable event type; inside the listener, this refers to the Draggable instance that fired it.
| Event | Fires when |
|---|---|
| press, click | pointer pressed / released as a click |
| dragstart, drag, dragend | drag lifecycle |
| release | pointer released (drag or not) |
| throwcomplete, throwupdate | inertia throw lifecycle (with InertiaPlugin) |
vars (onDrag, onDragEnd, etc.) for the common case; use addEventListener when attaching listeners dynamically after creation.onDrag/onDragEnd/etc. vars-based callbacks are set instead.