Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.

Commit

Permalink
fix: Show the toolbar if we are at or above the top
Browse files Browse the repository at this point in the history
  • Loading branch information
thislooksfun authored and Gerrit0 committed Mar 12, 2021
1 parent 3ccee01 commit 0d8715e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/default/assets/js/src/typedoc/services/Viewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class Viewport extends EventTarget {
*/
hideShowToolbar() {
const isShown = this.showToolbar;
this.showToolbar = this.lastY >= this.scrollTop || this.scrollTop === 0;
this.showToolbar = this.lastY >= this.scrollTop || this.scrollTop <= 0;
if (isShown !== this.showToolbar) {
this.toolbar.classList.toggle("tsd-page-toolbar--hide");
this.secondaryNav.classList.toggle("tsd-navigation--toolbar-hide");
Expand Down

0 comments on commit 0d8715e

Please sign in to comment.