From faae8d26a7848ec621769319859346a781df9a31 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Thu, 3 Aug 2023 20:27:38 +0000 Subject: [PATCH] feat: have the trashcan hide scrollbars when the flyout opens --- core/trashcan.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/trashcan.ts b/core/trashcan.ts index 58046f4667b..762fbe44cbe 100644 --- a/core/trashcan.ts +++ b/core/trashcan.ts @@ -306,6 +306,7 @@ export class Trashcan setTimeout(() => { this.flyout?.show(contents); blocklyStyle.cursor = ''; + this.workspace.scrollbar?.setVisible(false); }, 10); this.fireUiEvent(true); } @@ -316,6 +317,7 @@ export class Trashcan return; } this.flyout?.hide(); + this.workspace.scrollbar?.setVisible(true); this.fireUiEvent(false); this.workspace.recordDragTargets(); }