This commit is contained in:
syuilo 2020-07-06 17:26:18 +09:00
parent 860f68a2a2
commit 0dc9dd8644

View file

@ -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`;
}
}