mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-28 06:48:12 +09:00
Fix bug
This commit is contained in:
parent
21a9c8bdac
commit
9074fc0e30
@ -241,11 +241,13 @@
|
||||
}));
|
||||
}
|
||||
|
||||
this.containerTop = this.refs.main.getBoundingClientRect().top;
|
||||
this.headerHight = this.root.getBoundingClientRect().top;
|
||||
if (!this.opts.customize) {
|
||||
this.containerTop = this.refs.main.getBoundingClientRect().top;
|
||||
this.headerHight = this.root.getBoundingClientRect().top;
|
||||
|
||||
window.addEventListener('scroll', this.followWidgets);
|
||||
window.addEventListener('resize', this.followWidgets);
|
||||
window.addEventListener('scroll', this.followWidgets);
|
||||
window.addEventListener('resize', this.followWidgets);
|
||||
}
|
||||
});
|
||||
|
||||
this.on('unmount', () => {
|
||||
@ -253,8 +255,10 @@
|
||||
widget.unmount();
|
||||
});
|
||||
|
||||
window.removeEventListener('scroll', this.followWidgets);
|
||||
window.removeEventListener('resize', this.followWidgets);
|
||||
if (!this.opts.customize) {
|
||||
window.removeEventListener('scroll', this.followWidgets);
|
||||
window.removeEventListener('resize', this.followWidgets);
|
||||
}
|
||||
});
|
||||
|
||||
this.followWidgets = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user