mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Hide WidgetDiv and DropDownDiv on flyout wheel event
This commit is contained in:
parent
3be09a1c8f
commit
ae10e07d2b
2 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -320,6 +320,9 @@ Blockly.VerticalFlyout.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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue