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() {
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
) {