Skip to content

Commit d3575fa

Browse files
authored
fix: Finish any ongoing moves when the workspace loses focus (#462)
1 parent d3dc71d commit d3575fa

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)