Skip to content

Commit 4271e1a

Browse files
committed
fix: disposing during dragging (google#6954)
(cherry picked from commit 2167afa)
1 parent d227ec2 commit 4271e1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/block_dragger.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ export class BlockDragger implements IBlockDragger {
346346

347347
/** Fire a move event at the end of a block drag. */
348348
protected fireMoveEvent_() {
349+
if (this.draggingBlock_.isDeadOrDying()) return;
349350
const event = new (eventUtils.get(eventUtils.BLOCK_MOVE))(
350351
this.draggingBlock_) as BlockMove;
351352
event.oldCoordinate = this.startXY_;

0 commit comments

Comments
 (0)