From 0dc9dd864403ff552f162229dade899610bd00a2 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 872e162d2..1a9ab61ac 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`; } }