Skip to content
Snippets Groups Projects
Commit 27a17b46 authored by syuilo's avatar syuilo
Browse files

🎨

parent c25cf7f8
No related branches found
No related tags found
No related merge requests found
......@@ -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`;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment