Skip to content

Commit

Permalink
fix: removing gesture
Browse files Browse the repository at this point in the history
  • Loading branch information
rupato-deriv committed Aug 13, 2024
1 parent a72cf67 commit 5d13edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bot-skeleton/src/scratch/hooks/gesture.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ Blockly.Gesture.prototype.updateIsDraggingFromFlyout = function () {
}

// The start block is no longer relevant, because this is a drag.
this.startBlock.workspace.clearGesture();
this.startBlock = null;
this.targetBlock = this.flyout.createBlock(this.mostRecentEvent, this.targetBlock);
this.targetBlock.select();
this.startBlock.workspace.clearGesture();
return true;
}
return false;
Expand Down

0 comments on commit 5d13edb

Please sign in to comment.