mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
preserve scroll position in following feed
This commit is contained in:
parent
cdf9921f2c
commit
d8c6014b20
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,7 @@ import SkRemoteFollowersWarning from '@/components/SkRemoteFollowersWarning.vue'
|
|||
import { useRouter } from '@/router.js';
|
||||
import { definePage } from '@/page.js';
|
||||
import MkLazy from '@/components/global/MkLazy.vue';
|
||||
import { useScrollPositionKeeper } from '@/use/use-scroll-position-keeper.js';
|
||||
|
||||
const model = createModel();
|
||||
const {
|
||||
|
@ -99,6 +100,8 @@ const headerTabs: ComputedRef<Tab[]> = computed(() => followingFeedTabs.map(t =>
|
|||
title: followingTabName(t),
|
||||
})));
|
||||
|
||||
useScrollPositionKeeper(computed(() => userScroll.value?.rootEl));
|
||||
useScrollPositionKeeper(computed(() => noteScroll.value));
|
||||
definePage(() => ({
|
||||
title: i18n.ts.following,
|
||||
icon: followingTabIcon(followingTab),
|
||||
|
|
Loading…
Add table
Reference in a new issue