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