mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-04 01:38:05 +09:00
fix(client): Fix sticky sidebar behavior
This commit is contained in:
parent
2c63400244
commit
28363d4285
@ -22,7 +22,7 @@ export class StickySidebar {
|
||||
|
||||
if (this.isTop) {
|
||||
this.isTop = false;
|
||||
this.spacer.style.marginTop = `${scrollTop}px`;
|
||||
this.spacer.style.marginTop = `${this.lastScrollTop}px`;
|
||||
}
|
||||
} else { // upscroll
|
||||
const overflow = this.el.clientHeight - window.innerHeight;
|
||||
|
Loading…
Reference in New Issue
Block a user