Skip to content

Commit

Permalink
feat: have the trashcan hide scrollbars when the flyout opens
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega committed Aug 3, 2023
1 parent 8241fca commit faae8d2
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 faae8d2

Please sign in to comment.