isPausingUpdateを省略

This commit is contained in:
tamaina 2023-07-18 05:22:45 +00:00
parent 4cd9623dc3
commit 954d934505

View file

@ -426,7 +426,6 @@ 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' });
@ -439,8 +438,7 @@ function visibilityChange() {
clearTimeout(timerForSetPause.value); clearTimeout(timerForSetPause.value);
timerForSetPause.value = null; timerForSetPause.value = null;
} else { } else {
isPausingUpdate.value = false; if (!weakBacked && active.value) {
if (!backed && active.value) {
executeQueue(); executeQueue();
} }
} }
@ -473,7 +471,7 @@ const prepend = (item: MisskeyEntity): void => {
} }
if ( if (
!isPausingUpdate.value && // /調 !isPausingUpdate.value && // 調
queueSize.value === 0 && // queueSize.value === 0 && //
active.value // keepAlive active.value // keepAlive
) { ) {