Skip to content

Commit 06a3718

Browse files
committed
Fix: Finish any ongoing moves when the workspace loses focus
1 parent d3dc71d commit 06a3718

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/navigation_controller.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ export class NavigationController {
180180
}
181181

182182
handleBlurWorkspace(workspace: Blockly.WorkspaceSvg) {
183+
// Before we blur, end any ongoing move
184+
if (this.mover.isMoving(workspace)) {
185+
this.mover.finishMove(workspace);
186+
}
183187
this.navigation.handleBlurWorkspace(workspace);
184188
}
185189

0 commit comments

Comments
 (0)