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

Fix #1569

parent 9eb85951
No related branches found
No related tags found
No related merge requests found
...@@ -188,6 +188,11 @@ export default Vue.extend({ ...@@ -188,6 +188,11 @@ export default Vue.extend({
} }
if ((this as any).clientSettings.fetchOnScroll !== false) { if ((this as any).clientSettings.fetchOnScroll !== false) {
// 親要素が display none だったら弾く
// https://github.com/syuilo/misskey/issues/1569
// http://d.hatena.ne.jp/favril/20091105/1257403319
if (this.$el.offsetHeight == 0) return;
const current = window.scrollY + window.innerHeight; const current = window.scrollY + window.innerHeight;
if (current > document.body.offsetHeight - 8) this.loadMore(); if (current > document.body.offsetHeight - 8) this.loadMore();
} }
......
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