diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-07-13 15:13:02 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-07-13 15:13:02 +0900 |
| commit | 937df577f1b005ff4da2122e642c5c9f687d0069 (patch) | |
| tree | 5e84e1b3310fa1c3f687409a053f3a01353955c6 /src/client/scripts | |
| parent | Update CHANGELOG.md (diff) | |
| download | sharkey-937df577f1b005ff4da2122e642c5c9f687d0069.tar.gz sharkey-937df577f1b005ff4da2122e642c5c9f687d0069.tar.bz2 sharkey-937df577f1b005ff4da2122e642c5c9f687d0069.zip | |
fix(client): Fix sticky sidebar behavior
Diffstat (limited to 'src/client/scripts')
| -rw-r--r-- | src/client/scripts/sticky-sidebar.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/scripts/sticky-sidebar.ts b/src/client/scripts/sticky-sidebar.ts index 1a9ab61ac1..9d46a7831f 100644 --- a/src/client/scripts/sticky-sidebar.ts +++ b/src/client/scripts/sticky-sidebar.ts @@ -22,7 +22,7 @@ export class StickySidebar { if (this.isTop) { this.isTop = false; - this.spacer.style.marginTop = `${scrollTop}px`; + this.spacer.style.marginTop = `${this.lastScrollTop}px`; } } else { // upscroll const overflow = this.el.clientHeight - window.innerHeight; |