From 2167afab8508df666071d82154752d49ee891d1d Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Thu, 6 Apr 2023 11:41:12 -0700 Subject: [PATCH] fix: disposing during dragging (#6954) --- core/block_dragger.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/block_dragger.ts b/core/block_dragger.ts index 5809f7484..0a2cb0f33 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_;