fix(client): Fix sticky sidebar behavior

This commit is contained in:
syuilo 2020-07-13 15:13:02 +09:00
parent 2c63400244
commit 28363d4285

View File

@ -22,7 +22,7 @@ export class StickySidebar {
if (this.isTop) { if (this.isTop) {
this.isTop = false; this.isTop = false;
this.spacer.style.marginTop = `${scrollTop}px`; this.spacer.style.marginTop = `${this.lastScrollTop}px`;
} }
} else { // upscroll } else { // upscroll
const overflow = this.el.clientHeight - window.innerHeight; const overflow = this.el.clientHeight - window.innerHeight;