Skip to content

Commit

Permalink
fix: don't warn about procedure references when moving the definition…
Browse files Browse the repository at this point in the history
… on the workspace (#131)
  • Loading branch information
gonfunko authored Aug 21, 2024
1 parent eb839fc commit cda58cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scratch_dragger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit cda58cc

Please # to comment.