From 7e3472c305ee00b751257a788ef3ad3a5c3589b3 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Thu, 24 Aug 2023 08:34:45 -0700 Subject: [PATCH] fix: dragging blocks within a zoomed mutator (#7423) --- core/bubbles/mini_workspace_bubble.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/bubbles/mini_workspace_bubble.ts b/core/bubbles/mini_workspace_bubble.ts index 963055081..f459654fa 100644 --- a/core/bubbles/mini_workspace_bubble.ts +++ b/core/bubbles/mini_workspace_bubble.ts @@ -65,6 +65,9 @@ export class MiniWorkspaceBubble extends Bubble { ); workspaceOptions.parentWorkspace = this.workspace; this.miniWorkspace = this.newWorkspaceSvg(new Options(workspaceOptions)); + // TODO (#7422): Change this to `internalIsMiniWorkspace` or something. Not + // all mini workspaces are necessarily mutators. + this.miniWorkspace.internalIsMutator = true; const background = this.miniWorkspace.createDom('blocklyMutatorBackground'); this.svgDialog.appendChild(background); if (options.languageTree) {