Skip to content

Commit

Permalink
fix: close flyout after adding a block
Browse files Browse the repository at this point in the history
  • Loading branch information
farabi-deriv committed Nov 18, 2024
1 parent 5491ffa commit 8a9342b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/external/bot-skeleton/scratch/hooks/workspace_svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ window.Blockly.WorkspaceSvg.prototype.addBlockNode = function (block_node) {
block.moveBy(last_block_xy.x, y);
}

flyout.setIsSearchFlyout(false);
flyout.setVisibility(false);

// Call svgResize to avoid glitching workspace.
window.Blockly.svgResize(block.workspace);
// kept this commented since it is making a glitching issue,
Expand Down

0 comments on commit 8a9342b

Please sign in to comment.