From 954d934505b6154362420a8687b93c6a95ad1229 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 18 Jul 2023 05:22:45 +0000 Subject: [PATCH] =?UTF-8?q?isPausingUpdate=E3=82=92=E7=9C=81=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/MkPagination.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/components/MkPagination.vue b/packages/frontend/src/components/MkPagination.vue index 98e06c02d8..231cc17b49 100644 --- a/packages/frontend/src/components/MkPagination.vue +++ b/packages/frontend/src/components/MkPagination.vue @@ -426,7 +426,6 @@ const appearFetchMoreAhead = async (): Promise => { function visibilityChange() { if (visibility.value === 'hidden') { timerForSetPause.value = window.setTimeout(() => { - isPausingUpdate.value = true; timerForSetPause.value = null; if (!backed) { scrollBy(scrollableElement, { top: 32, behavior: 'instant' }); @@ -439,8 +438,7 @@ function visibilityChange() { clearTimeout(timerForSetPause.value); timerForSetPause.value = null; } else { - isPausingUpdate.value = false; - if (!backed && active.value) { + if (!weakBacked && active.value) { executeQueue(); } } @@ -473,7 +471,7 @@ const prepend = (item: MisskeyEntity): void => { } if ( - !isPausingUpdate.value && // タブがバックグラウンドの時/スクロール調整中はキューに追加する + !isPausingUpdate.value && // スクロール調整中はキューに追加する queueSize.value === 0 && // キューに残っている場合はキューに追加する active.value // keepAliveで隠されている間はキューに追加する ) {