Skip to content

Commit 2ac13b5

Browse files
authored
feat: have the trashcan hide scrollbars when the flyout opens (#7357)
1 parent dbe926d commit 2ac13b5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/trashcan.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ export class Trashcan
306306
setTimeout(() => {
307307
this.flyout?.show(contents);
308308
blocklyStyle.cursor = '';
309+
this.workspace.scrollbar?.setVisible(false);
309310
}, 10);
310311
this.fireUiEvent(true);
311312
}
@@ -316,6 +317,7 @@ export class Trashcan
316317
return;
317318
}
318319
this.flyout?.hide();
320+
this.workspace.scrollbar?.setVisible(true);
319321
this.fireUiEvent(false);
320322
this.workspace.recordDragTargets();
321323
}

0 commit comments

Comments
 (0)