blockly > dragging > BlockDragStrategy > drag
dragging.BlockDragStrategy.drag() method
Moves the block and updates any connection previews.
Signature:
drag(newLoc: Coordinate, e?: PointerEvent | KeyboardEvent): void;
Parameters
Parameter | Type | Description |
|---|---|---|
newLoc | ||
e | PointerEvent | KeyboardEvent | (Optional) |
Returns:
void