From b0c6675ef331c6f5719546acb5ebae532e5196f4 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 18 Jul 2023 06:55:08 +0000 Subject: [PATCH] :art: --- packages/frontend/src/components/MkPagination.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/frontend/src/components/MkPagination.vue b/packages/frontend/src/components/MkPagination.vue index 98e06c02d..d857f924c 100644 --- a/packages/frontend/src/components/MkPagination.vue +++ b/packages/frontend/src/components/MkPagination.vue @@ -41,7 +41,7 @@ import { computed, ComputedRef, isRef, nextTick, onActivated, onBeforeUnmount, onDeactivated, onMounted, ref, watch } from 'vue'; import * as misskey from 'misskey-js'; import * as os from '@/os'; -import { isBottomVisible, isTopVisible, getScrollContainer, scrollToBottom, scrollToTop, scrollBy } from '@/scripts/scroll'; +import { isBottomVisible, isTopVisible, getScrollContainer, scrollToBottom, scrollToTop } from '@/scripts/scroll'; import { useDocumentVisibility } from '@/scripts/use-document-visibility'; import MkButton from '@/components/MkButton.vue'; import { defaultStore } from '@/store'; @@ -428,10 +428,6 @@ function visibilityChange() { timerForSetPause.value = window.setTimeout(() => { isPausingUpdate.value = true; timerForSetPause.value = null; - if (!backed) { - scrollBy(scrollableElement, { top: 32, behavior: 'instant' }); - backed = true; - } }, BACKGROUND_PAUSE_WAIT_SEC * 1000); } else { // 'visible'