From cda58ccfa799a0d301d6ba842c6546c1eb9f5614 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Wed, 21 Aug 2024 14:03:11 -0700 Subject: [PATCH] fix: don't warn about procedure references when moving the definition on the workspace (#131) --- src/scratch_dragger.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scratch_dragger.js b/src/scratch_dragger.js index 35a1fce299..ebd0878050 100644 --- a/src/scratch_dragger.js +++ b/src/scratch_dragger.js @@ -14,7 +14,8 @@ class ScratchDragger extends Blockly.dragging.Dragger { onDragEnd(event) { if ( this.draggable instanceof Blockly.BlockSvg && - this.draggable.type === "procedures_definition" + this.draggable.type === "procedures_definition" && + this.wouldDeleteDraggable(event, this.draggable.getRootBlock()) ) { const procCode = this.draggable .getInputTargetBlock("custom_block")