mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-24 23:15:13 +00:00
🎨
This commit is contained in:
parent
72998adfb6
commit
b0c6675ef3
1 changed files with 1 additions and 5 deletions
|
@ -41,7 +41,7 @@
|
||||||
import { computed, ComputedRef, isRef, nextTick, onActivated, onBeforeUnmount, onDeactivated, onMounted, ref, watch } from 'vue';
|
import { computed, ComputedRef, isRef, nextTick, onActivated, onBeforeUnmount, onDeactivated, onMounted, ref, watch } from 'vue';
|
||||||
import * as misskey from 'misskey-js';
|
import * as misskey from 'misskey-js';
|
||||||
import * as os from '@/os';
|
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 { useDocumentVisibility } from '@/scripts/use-document-visibility';
|
||||||
import MkButton from '@/components/MkButton.vue';
|
import MkButton from '@/components/MkButton.vue';
|
||||||
import { defaultStore } from '@/store';
|
import { defaultStore } from '@/store';
|
||||||
|
@ -428,10 +428,6 @@ function visibilityChange() {
|
||||||
timerForSetPause.value = window.setTimeout(() => {
|
timerForSetPause.value = window.setTimeout(() => {
|
||||||
isPausingUpdate.value = true;
|
isPausingUpdate.value = true;
|
||||||
timerForSetPause.value = null;
|
timerForSetPause.value = null;
|
||||||
if (!backed) {
|
|
||||||
scrollBy(scrollableElement, { top: 32, behavior: 'instant' });
|
|
||||||
backed = true;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
BACKGROUND_PAUSE_WAIT_SEC * 1000);
|
BACKGROUND_PAUSE_WAIT_SEC * 1000);
|
||||||
} else { // 'visible'
|
} else { // 'visible'
|
||||||
|
|
Loading…
Reference in a new issue