From 2ac13b5a28adc24d6a56b445fff9e749f474d7d2 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Fri, 4 Aug 2023 08:57:33 -0700 Subject: [PATCH] feat: have the trashcan hide scrollbars when the flyout opens (#7357) --- 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(); }