From 7569ae161259fe882d8cb496931f57805b621e5e Mon Sep 17 00:00:00 2001 From: rupato-deriv <97010868+rupato-deriv@users.noreply.github.com> Date: Thu, 15 Aug 2024 14:05:44 +0800 Subject: [PATCH] Rupato/bot 2098/fix delete and zoom after blockly update (#16436) * fix: blockly drag and zoom * fix: blockly drag and zoom * fix: blockly drag and zoom * fix: for flyout gesture * fix: for flyout gesture * fix: removing gesture * fix: removing gesture * fix: removing gesture --- packages/bot-skeleton/src/scratch/hooks/gesture.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bot-skeleton/src/scratch/hooks/gesture.js b/packages/bot-skeleton/src/scratch/hooks/gesture.js index 487e45bde6c9..aa3a74e86f65 100644 --- a/packages/bot-skeleton/src/scratch/hooks/gesture.js +++ b/packages/bot-skeleton/src/scratch/hooks/gesture.js @@ -24,6 +24,7 @@ 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();