summaryrefslogtreecommitdiff
path: root/src/client/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-07-13 15:13:02 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-07-13 15:13:02 +0900
commit937df577f1b005ff4da2122e642c5c9f687d0069 (patch)
tree5e84e1b3310fa1c3f687409a053f3a01353955c6 /src/client/scripts
parentUpdate CHANGELOG.md (diff)
downloadsharkey-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.ts2
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;