Revert "isPausingUpdateを省略"

This reverts commit 954d934505.
This commit is contained in:
tamaina 2023-07-18 06:54:05 +00:00
parent 954d934505
commit 72998adfb6

View file

@ -426,6 +426,7 @@ const appearFetchMoreAhead = async (): Promise<void> => {
function visibilityChange() { function visibilityChange() {
if (visibility.value === 'hidden') { if (visibility.value === 'hidden') {
timerForSetPause.value = window.setTimeout(() => { timerForSetPause.value = window.setTimeout(() => {
isPausingUpdate.value = true;
timerForSetPause.value = null; timerForSetPause.value = null;
if (!backed) { if (!backed) {
scrollBy(scrollableElement, { top: 32, behavior: 'instant' }); scrollBy(scrollableElement, { top: 32, behavior: 'instant' });
@ -438,7 +439,8 @@ function visibilityChange() {
clearTimeout(timerForSetPause.value); clearTimeout(timerForSetPause.value);
timerForSetPause.value = null; timerForSetPause.value = null;
} else { } else {
if (!weakBacked && active.value) { isPausingUpdate.value = false;
if (!backed && active.value) {
executeQueue(); executeQueue();
} }
} }
@ -471,7 +473,7 @@ const prepend = (item: MisskeyEntity): void => {
} }
if ( if (
!isPausingUpdate.value && // 調 !isPausingUpdate.value && // /調
queueSize.value === 0 && // queueSize.value === 0 && //
active.value // keepAlive active.value // keepAlive
) { ) {