Hide WidgetDiv and DropDownDiv on flyout wheel event

This commit is contained in:
Tim Mickel 2016-11-21 14:35:41 -05:00
parent 3be09a1c8f
commit ae10e07d2b
No known key found for this signature in database
GPG key ID: 59C3D9D14D923146
2 changed files with 6 additions and 0 deletions

View file

@ -259,6 +259,9 @@ Blockly.HorizontalFlyout.prototype.wheel_ = function(e) {
pos = Math.min(pos, limit);
pos = Math.max(pos, 0);
this.scrollbar_.set(pos);
// When the flyout moves from a wheel event, hide WidgetDiv and DropDownDiv.
Blockly.WidgetDiv.hide(true);
Blockly.DropDownDiv.hideWithoutAnimation();
}
// Don't scroll the page.