From d5d7a527a00cb3047945d42fb1d7c1a8216ee13c Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 7 May 2018 16:53:56 +0900 Subject: [PATCH] Fix #1569 --- src/client/app/mobile/views/components/notes.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/app/mobile/views/components/notes.vue b/src/client/app/mobile/views/components/notes.vue index 9461fe6fe..53e232e52 100644 --- a/src/client/app/mobile/views/components/notes.vue +++ b/src/client/app/mobile/views/components/notes.vue @@ -188,6 +188,11 @@ export default Vue.extend({ } 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; if (current > document.body.offsetHeight - 8) this.loadMore(); }