mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
fix: disposing during dragging (#6954)
(cherry picked from commit 2167afab85)
This commit is contained in:
@@ -346,6 +346,7 @@ export class BlockDragger implements IBlockDragger {
|
||||
|
||||
/** Fire a move event at the end of a block drag. */
|
||||
protected fireMoveEvent_() {
|
||||
if (this.draggingBlock_.isDeadOrDying()) return;
|
||||
const event = new (eventUtils.get(eventUtils.BLOCK_MOVE))(
|
||||
this.draggingBlock_) as BlockMove;
|
||||
event.oldCoordinate = this.startXY_;
|
||||
|
||||
Reference in New Issue
Block a user