Skip to content

add monkey patch workaround for blockly focus issue when deleting block#11122

Open
riknoll wants to merge 1 commit intomasterfrom
dev/riknoll/arcade-workaround-blockly-focus-behavior
Open

add monkey patch workaround for blockly focus issue when deleting block#11122
riknoll wants to merge 1 commit intomasterfrom
dev/riknoll/arcade-workaround-blockly-focus-behavior

Conversation

@riknoll
Copy link
Member

@riknoll riknoll commented Feb 17, 2026

fixes microsoft/pxt-arcade#7392

this adds a monkey patch workaround for the annoying blockly focus behavior when deleting a top-level block

the only changed lines from the core implementation are lines 50-58, which now calculate a radius based off of the workspace view width/height rather than only looking in a radius of 0.

...well, i also had to replace the this.svgGroup reference with a call to this.getSvgRoot() (which returns the same element) because svgGroup is private, but it's fundamentally unchanged

if you want to diff against blockly's version, it's here

@microbit-robert FYI

@riknoll riknoll requested a review from a team February 17, 2026 22:39
Copy link
Contributor

@aznhassan aznhassan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Focus bug after deleting a block

2 participants