From d82a0ae0b8a56e83cfa06227c2d8babf71f2f28d Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Thu, 19 Sep 2019 08:37:40 -0700 Subject: [PATCH] Fixed scrolling the trashcan flyout with mouse. (#3045) --- core/blockly.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/blockly.js b/core/blockly.js index 523944948..103c0b7f7 100644 --- a/core/blockly.js +++ b/core/blockly.js @@ -342,14 +342,14 @@ Blockly.hideChaff = function(opt_allowToolbox) { Blockly.Tooltip.hide(); Blockly.WidgetDiv.hide(); Blockly.DropDownDiv.hideWithoutAnimation(); - // For now the trashcan flyout always autocloses because it overlays the - // trashcan UI (no trashcan to click to close it) - var workspace = Blockly.getMainWorkspace(); - if (workspace.trashcan && - workspace.trashcan.flyout_) { - workspace.trashcan.flyout_.hide(); - } if (!opt_allowToolbox) { + var workspace = Blockly.getMainWorkspace(); + // For now the trashcan flyout always autocloses because it overlays the + // trashcan UI (no trashcan to click to close it). + if (workspace.trashcan && + workspace.trashcan.flyout_) { + workspace.trashcan.flyout_.hide(); + } if (workspace.toolbox_ && workspace.toolbox_.flyout_ && workspace.toolbox_.flyout_.autoClose) {