From f75fc6359b9090902ab28775e09206a07588e6ea Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Wed, 24 Aug 2016 11:35:28 -0700 Subject: [PATCH] Fix #586 --- core/flyout_button.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/flyout_button.js b/core/flyout_button.js index 4b7559d68..75b7a83c1 100644 --- a/core/flyout_button.js +++ b/core/flyout_button.js @@ -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_); };