We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb839fc commit cda58ccCopy full SHA for cda58cc
src/scratch_dragger.js
@@ -14,7 +14,8 @@ class ScratchDragger extends Blockly.dragging.Dragger {
14
onDragEnd(event) {
15
if (
16
this.draggable instanceof Blockly.BlockSvg &&
17
- this.draggable.type === "procedures_definition"
+ this.draggable.type === "procedures_definition" &&
18
+ this.wouldDeleteDraggable(event, this.draggable.getRootBlock())
19
) {
20
const procCode = this.draggable
21
.getInputTargetBlock("custom_block")
0 commit comments