mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
Fixed scrolling the trashcan flyout with mouse. (#3045)
This commit is contained in:
committed by
alschmiedt
parent
585e860395
commit
d82a0ae0b8
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user