diff --git a/package.json b/package.json index bb6e369f5..81dbbbd28 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.1-rc", + "version": "12.119.0-calc.1-rc.1", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/pages/about.vue b/packages/client/src/pages/about.vue index d6259ab36..7944241a7 100644 --- a/packages/client/src/pages/about.vue +++ b/packages/client/src/pages/about.vue @@ -6,7 +6,7 @@ :modules="[Virtual]" :space-between="20" :virtual="true" - :allow-touch-move="deviceKind === 'smartphone'" + :allow-touch-move="!(deviceKind === 'desktop')" @swiper="setSwiperRef" @slide-change="onSlideChange" > diff --git a/packages/client/src/pages/admin-file.vue b/packages/client/src/pages/admin-file.vue index 0ab3d6c7b..f6c418488 100644 --- a/packages/client/src/pages/admin-file.vue +++ b/packages/client/src/pages/admin-file.vue @@ -6,7 +6,7 @@ :modules="[Virtual]" :space-between="20" :virtual="true" - :allow-touch-move="deviceKind === 'smartphone'" + :allow-touch-move="!(deviceKind === 'desktop')" @swiper="setSwiperRef" @slide-change="onSlideChange" > diff --git a/packages/client/src/pages/channels.vue b/packages/client/src/pages/channels.vue index 523eeec4c..1b2372962 100644 --- a/packages/client/src/pages/channels.vue +++ b/packages/client/src/pages/channels.vue @@ -6,7 +6,7 @@ :modules="[Virtual]" :space-between="20" :virtual="true" - :allow-touch-move="deviceKind === 'smartphone'" + :allow-touch-move="!(deviceKind === 'desktop')" @swiper="setSwiperRef" @slide-change="onSlideChange" > diff --git a/packages/client/src/pages/explore.vue b/packages/client/src/pages/explore.vue index 9513a1861..114302e78 100644 --- a/packages/client/src/pages/explore.vue +++ b/packages/client/src/pages/explore.vue @@ -7,7 +7,7 @@ :modules="[Virtual]" :space-between="20" :virtual="true" - :allow-touch-move="deviceKind === 'smartphone'" + :allow-touch-move="!(deviceKind === 'desktop')" @swiper="setSwiperRef" @slide-change="onSlideChange" > @@ -62,7 +62,12 @@ const props = defineProps<{ const tabs = ['featured', 'users', 'search']; -let tab = $ref('featured'); +const tab = $computed({ + get: () => tabs[0], + set: (x) => { + syncSlide(tabs.indexOf(x)); + }, +}); let tagsEl = $ref>(); let searchQuery = $ref(null); let searchOrigin = $ref('combined'); diff --git a/packages/client/src/pages/gallery/index.vue b/packages/client/src/pages/gallery/index.vue index 8139887c1..805a2a633 100644 --- a/packages/client/src/pages/gallery/index.vue +++ b/packages/client/src/pages/gallery/index.vue @@ -6,7 +6,7 @@ :modules="[Virtual]" :space-between="20" :virtual="true" - :allow-touch-move="deviceKind === 'smartphone'" + :allow-touch-move="!(deviceKind === 'desktop')" @swiper="setSwiperRef" @slide-change="onSlideChange" > diff --git a/packages/client/src/pages/instance-info.vue b/packages/client/src/pages/instance-info.vue index 66376e1e4..9f7fd5528 100644 --- a/packages/client/src/pages/instance-info.vue +++ b/packages/client/src/pages/instance-info.vue @@ -6,7 +6,7 @@ :modules="[Virtual]" :space-between="20" :virtual="true" - :allow-touch-move="deviceKind === 'smartphone'" + :allow-touch-move="!(deviceKind === 'desktop')" @swiper="setSwiperRef" @slide-change="onSlideChange" > diff --git a/packages/client/src/pages/notifications.vue b/packages/client/src/pages/notifications.vue index a67923515..30c07b0ea 100644 --- a/packages/client/src/pages/notifications.vue +++ b/packages/client/src/pages/notifications.vue @@ -13,7 +13,7 @@ :modules="[Virtual]" :space-between="20" :virtual="true" - :allow-touch-move="deviceKind === 'smartphone'" + :allow-touch-move="!(deviceKind === 'desktop')" @swiper="setSwiperRef" @slide-change="onSlideChange" > diff --git a/packages/client/src/pages/pages.vue b/packages/client/src/pages/pages.vue index 4897c9bc0..4027f8b23 100644 --- a/packages/client/src/pages/pages.vue +++ b/packages/client/src/pages/pages.vue @@ -6,7 +6,7 @@ :modules="[Virtual]" :space-between="20" :virtual="true" - :allow-touch-move="deviceKind === 'smartphone'" + :allow-touch-move="!(deviceKind === 'desktop')" @swiper="setSwiperRef" @slide-change="onSlideChange" > diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index 2195168b6..d194f3ee8 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -40,7 +40,7 @@ :modules="[Virtual]" :space-between="20" :virtual="true" - :allow-touch-move="deviceKind === 'smartphone'" + :allow-touch-move="!(deviceKind === 'desktop')" @swiper="setSwiperRef" @slide-change="onSlideChange" > diff --git a/packages/client/src/pages/user/index.vue b/packages/client/src/pages/user/index.vue index 8e5160dca..a4bb5e785 100644 --- a/packages/client/src/pages/user/index.vue +++ b/packages/client/src/pages/user/index.vue @@ -6,7 +6,7 @@ :modules="[Virtual]" :space-between="20" :virtual="true" - :allow-touch-move="deviceKind === 'smartphone'" + :allow-touch-move="!(deviceKind === 'desktop')" @swiper="setSwiperRef" @slide-change="onSlideChange" >