mirror of
https://github.com/google/blockly.git
synced 2026-05-20 11:00:12 +02:00
fix: Fix bug that prevented display of move indicators in mutator workspaces (#9856)
This commit is contained in:
@@ -27,7 +27,10 @@ export class MoveIndicator {
|
||||
this.svgRoot = dom.createSvgElement(
|
||||
Svg.G,
|
||||
{},
|
||||
workspace.getLayerManager()?.getDragLayer(),
|
||||
// Mutator workspaces don't have a drag layer, so fall back to the block
|
||||
// layer.
|
||||
workspace.getLayerManager()?.getDragLayer() ??
|
||||
workspace.getLayerManager()?.getBlockLayer(),
|
||||
);
|
||||
this.svgRoot.classList.add('blocklyMoveIndicator');
|
||||
const rtl = workspace.RTL;
|
||||
|
||||
Reference in New Issue
Block a user