Skip to content

Commit

Permalink
feat: have the trashcan hide scrollbars when the flyout opens (#7357)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega authored Aug 4, 2023
1 parent dbe926d commit 2ac13b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/trashcan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ export class Trashcan
setTimeout(() => {
this.flyout?.show(contents);
blocklyStyle.cursor = '';
this.workspace.scrollbar?.setVisible(false);
}, 10);
this.fireUiEvent(true);
}
Expand All @@ -316,6 +317,7 @@ export class Trashcan
return;
}
this.flyout?.hide();
this.workspace.scrollbar?.setVisible(true);
this.fireUiEvent(false);
this.workspace.recordDragTargets();
}
Expand Down

0 comments on commit 2ac13b5

Please sign in to comment.