blockly > BlockDragger > drag
BlockDragger.drag() method
Execute a step of block dragging, based on the given event. Update the display accordingly.
Signature:
drag(e: PointerEvent, delta: Coordinate): void;
Parameters
Parameter | Type | Description |
---|---|---|
e | PointerEvent | The most recent move event. |
delta | Coordinate | How far the pointer has moved from the position at the start of the drag, in pixel units. |
Returns:
void