From 5d13edb628d84b2b247448bc6773b89c870e2957 Mon Sep 17 00:00:00 2001 From: rupato-deriv Date: Tue, 13 Aug 2024 12:16:36 +0800 Subject: [PATCH] fix: removing gesture --- packages/bot-skeleton/src/scratch/hooks/gesture.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bot-skeleton/src/scratch/hooks/gesture.js b/packages/bot-skeleton/src/scratch/hooks/gesture.js index cef3f7e99f4a..aa3a74e86f65 100644 --- a/packages/bot-skeleton/src/scratch/hooks/gesture.js +++ b/packages/bot-skeleton/src/scratch/hooks/gesture.js @@ -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;