From 4891adc40778ad7f2180d2f02bd029a229e0771d Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Wed, 5 Apr 2023 23:46:20 +0000 Subject: [PATCH] fix: disposing during dragging --- core/block_dragger.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/block_dragger.ts b/core/block_dragger.ts index 5809f74844b..0a2cb0f3310 100644 --- a/core/block_dragger.ts +++ b/core/block_dragger.ts @@ -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_;