isPausingUpdateを省略

This commit is contained in:
tamaina 2023-07-18 05:22:45 +00:00
parent 4cd9623dc3
commit 954d934505
1 changed files with 2 additions and 4 deletions

View File

@ -426,7 +426,6 @@ 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' });
@ -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
) {