Skip to content

Commit cda58cc

Browse files
authored
fix: don't warn about procedure references when moving the definition on the workspace (#131)
1 parent eb839fc commit cda58cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scratch_dragger.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class ScratchDragger extends Blockly.dragging.Dragger {
1414
onDragEnd(event) {
1515
if (
1616
this.draggable instanceof Blockly.BlockSvg &&
17-
this.draggable.type === "procedures_definition"
17+
this.draggable.type === "procedures_definition" &&
18+
this.wouldDeleteDraggable(event, this.draggable.getRootBlock())
1819
) {
1920
const procCode = this.draggable
2021
.getInputTargetBlock("custom_block")

0 commit comments

Comments
 (0)