blockly > IDragStrategy > startDrag
IDragStrategy.startDrag() method
Handles any drag startup (e.g moving elements to the front of the workspace).
Signature:
startDrag(e?: PointerEvent | KeyboardEvent): IDraggable;
Parameters
Parameter | Type | Description |
|---|---|---|
e | PointerEvent | KeyboardEvent | (Optional) Event that started the drag; can be used to check modifier keys, etc. May be missing when dragging is triggered programmatically rather than by user. |
Returns: