mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-02-04 13:50:20 -07:00
🎨
This commit is contained in:
parent
860f68a2a2
commit
0dc9dd8644
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ export class StickySidebar {
|
||||||
if (this.isBottom) {
|
if (this.isBottom) {
|
||||||
this.isBottom = false;
|
this.isBottom = false;
|
||||||
const overflow = this.el.clientHeight - window.innerHeight;
|
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`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue