blockly > IDragStrategy > startDrag

IDragStrategy.startDrag() method

Handles any drag startup (e.g moving elements to the front of the workspace).

Signature:

startDrag(e?: PointerEvent): void;

Parameters

Parameter Type Description
e PointerEvent (Optional) PointerEvent that started the drag; can be used to check modifier keys, etc. May be missing when dragging is triggered programatically rather than by user.

Returns:

void