mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Make context menus work again; fix dragging from the toolbox with variables.
This commit is contained in:
@@ -647,7 +647,8 @@ Blockly.WorkspaceSvg.prototype.paste = function(xmlBlock) {
|
||||
*/
|
||||
Blockly.WorkspaceSvg.prototype.createVariable = function(name) {
|
||||
Blockly.WorkspaceSvg.superClass_.createVariable.call(this, name);
|
||||
if (this.toolbox_ && this.toolbox_.flyout_) {
|
||||
// Don't refresh the toolbox if there's a drag in progress.
|
||||
if (this.toolbox_ && this.toolbox_.flyout_ && !Blockly.Flyout.startFlyout_) {
|
||||
this.toolbox_.refreshSelection();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user