This commit is contained in:
Rachel Fenichel
2016-08-24 11:35:28 -07:00
parent 8127c69ff2
commit f75fc6359b

View File

@@ -162,6 +162,8 @@ Blockly.FlyoutButton.prototype.onMouseUp = function(e) {
e.preventDefault();
// Don't propagate mousewheel event (zooming).
e.stopPropagation();
// Stop binding to mouseup and mousemove events--flyout mouseup would normally
// do this, but we're skipping that.
Blockly.Flyout.terminateDrag_();
Blockly.Variables.createVariable(this.targetWorkspace_);
};