summaryrefslogtreecommitdiff
path: root/src/client/scripts
diff options
context:
space:
mode:
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 872e162d2b..1a9ab61ac1 100644
--- a/src/client/scripts/sticky-sidebar.ts
+++ b/src/client/scripts/sticky-sidebar.ts
@@ -34,7 +34,7 @@ export class StickySidebar {
if (this.isBottom) {
this.isBottom = false;
const overflow = this.el.clientHeight - window.innerHeight;
- this.spacer.style.marginTop = `${scrollTop - (overflow + this.marginTop)}px`;
+ this.spacer.style.marginTop = `${this.lastScrollTop - (overflow + this.marginTop)}px`;
}
}