summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-11-18 08:29:47 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-11-18 08:29:47 +0900
commit4458350ee52b085d7752dcf45386bed1481a7080 (patch)
tree2e82e09284c5da3a6b12e3d84915e2704c60b79c /src/web
parentv3140 (diff)
downloadmisskey-4458350ee52b085d7752dcf45386bed1481a7080.tar.gz
misskey-4458350ee52b085d7752dcf45386bed1481a7080.tar.bz2
misskey-4458350ee52b085d7752dcf45386bed1481a7080.zip
Fix bug
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/desktop/tags/home.tag16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/web/app/desktop/tags/home.tag b/src/web/app/desktop/tags/home.tag
index 7a23ad242e..36e94ecc50 100644
--- a/src/web/app/desktop/tags/home.tag
+++ b/src/web/app/desktop/tags/home.tag
@@ -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 = () => {