feat: have the trashcan hide scrollbars when the flyout opens (#7357)

This commit is contained in:
Beka Westberg
2023-08-04 08:57:33 -07:00
committed by GitHub
parent dbe926db4a
commit 2ac13b5a28

View File

@@ -306,6 +306,7 @@ export class Trashcan
setTimeout(() => { setTimeout(() => {
this.flyout?.show(contents); this.flyout?.show(contents);
blocklyStyle.cursor = ''; blocklyStyle.cursor = '';
this.workspace.scrollbar?.setVisible(false);
}, 10); }, 10);
this.fireUiEvent(true); this.fireUiEvent(true);
} }
@@ -316,6 +317,7 @@ export class Trashcan
return; return;
} }
this.flyout?.hide(); this.flyout?.hide();
this.workspace.scrollbar?.setVisible(true);
this.fireUiEvent(false); this.fireUiEvent(false);
this.workspace.recordDragTargets(); this.workspace.recordDragTargets();
} }