diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-23 19:49:24 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-02-23 19:49:24 +0900 |
| commit | 48331bc851e6093d37d514798d9be2f4f9fe76a0 (patch) | |
| tree | 8c5b6985eee4af83d613bf49d1fd497c26d60b12 /packages/frontend/src/ui/deck.vue | |
| parent | fix(client):「キャッシュを削除」した後、ローカルのカス... (diff) | |
| download | misskey-48331bc851e6093d37d514798d9be2f4f9fe76a0.tar.gz misskey-48331bc851e6093d37d514798d9be2f4f9fe76a0.tar.bz2 misskey-48331bc851e6093d37d514798d9be2f4f9fe76a0.zip | |
chore(client): tweak deck experience
Diffstat (limited to 'packages/frontend/src/ui/deck.vue')
| -rw-r--r-- | packages/frontend/src/ui/deck.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/frontend/src/ui/deck.vue b/packages/frontend/src/ui/deck.vue index 4e93359591..be168b4282 100644 --- a/packages/frontend/src/ui/deck.vue +++ b/packages/frontend/src/ui/deck.vue @@ -98,6 +98,7 @@ import { $i } from '@/account'; import { i18n } from '@/i18n'; import { mainRouter } from '@/router'; import { unisonReload } from '@/scripts/unison-reload'; +import { deviceKind } from '@/scripts/device-kind'; const XStatusBars = defineAsyncComponent(() => import('@/ui/_common_/statusbars.vue')); mainRouter.navHook = (path, flag): boolean => { @@ -115,7 +116,7 @@ window.addEventListener('resize', () => { isMobile.value = window.innerWidth <= 500; }); -const snapScroll = isMobile; +const snapScroll = deviceKind === 'smartphone' || deviceKind === 'tablet'; const drawerMenuShowing = ref(false); const route = 'TODO'; |