mirror of
https://github.com/google/blockly.git
synced 2026-05-21 11:30:11 +02:00
fix: Fix bug that could cause unintend block movements (#9818)
This commit is contained in:
@@ -1893,7 +1893,8 @@ export class BlockSvg
|
||||
onNodeFocus(): void {
|
||||
this.recomputeAriaAttributes();
|
||||
this.select();
|
||||
if (getFocusManager().getFocusedNode() !== this) {
|
||||
const focusedNode = getFocusManager().getFocusedNode();
|
||||
if (focusedNode && focusedNode !== this) {
|
||||
renderManagement.finishQueuedRenders().then(() => {
|
||||
this.workspace.scrollBoundsIntoView(
|
||||
this.getBoundingRectangleWithoutChildren(),
|
||||
|
||||
Reference in New Issue
Block a user