dragStart abstract method

void dragStart(
  1. Element draggable,
  2. Point<num> startPosition
)

Called when the drag operation starts.

This method must set the avatar variable and must attache it to the DOM.

The provided draggable is used to know where in the DOM the drag avatar can be inserted.

The startPosition is the position where the drag started, relative to the whole document (page coordinates).

Implementation

void dragStart(Element draggable, Point startPosition);