blockly > dragging > BlockDragStrategy > shouldDisconnect
dragging.BlockDragStrategy.shouldDisconnect() method
Whether or not we should disconnect the block when a drag is started.
Signature:
protected shouldDisconnect(healStack: boolean): boolean;
Parameters
Parameter | Type | Description |
|---|---|---|
healStack | boolean | Whether or not to heal the stack after disconnecting. |
Returns:
boolean
True to disconnect the block, false otherwise.