From 27a17b467d72aea81774c04b8ca3e01ed6874b24 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 6 Jul 2020 17:26:18 +0900 Subject: [PATCH] :art: --- src/client/scripts/sticky-sidebar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`; } }