diff --git a/package.json b/package.json index bb6e369f50..81dbbbd285 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 d6259ab362..7944241a70 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 0ab3d6c7b3..f6c4184889 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 523eeec4ce..1b23729629 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 9513a1861a..114302e780 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 8139887c1a..805a2a633e 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 66376e1e4b..9f7fd55283 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 a679235159..30c07b0ea7 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 4897c9bc0b..4027f8b238 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 2195168b6e..d194f3ee81 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 8e5160dca2..a4bb5e7855 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" >