summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorMarie <github@yuugi.dev>2025-05-07 10:46:17 +0200
committerMarie <github@yuugi.dev>2025-05-07 10:46:17 +0200
commitf1b0ff8f5f7338eccd20a2eba734946e545d9176 (patch)
tree5b69554b7844ab9c9da6c2f10c7f0c5591e9a914 /packages
parentfix const name (diff)
downloadsharkey-f1b0ff8f5f7338eccd20a2eba734946e545d9176.tar.gz
sharkey-f1b0ff8f5f7338eccd20a2eba734946e545d9176.tar.bz2
sharkey-f1b0ff8f5f7338eccd20a2eba734946e545d9176.zip
isNotUserHome > isUserHome
Diffstat (limited to 'packages')
-rw-r--r--packages/frontend/src/components/MkSwiper.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkSwiper.vue b/packages/frontend/src/components/MkSwiper.vue
index 892d375751..c0d6dc463c 100644
--- a/packages/frontend/src/components/MkSwiper.vue
+++ b/packages/frontend/src/components/MkSwiper.vue
@@ -12,7 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-only
@touchend.passive="touchEnd"
>
<Transition
- :class="[{ [$style.swiping]: isSwipingForClass, [$style.transitionChildren]: isNotUserHome }]"
+ :class="[{ [$style.swiping]: isSwipingForClass, [$style.transitionChildren]: !isUserHome }]"
:enterActiveClass="$style.swipeAnimation_enterActive"
:leaveActiveClass="$style.swipeAnimation_leaveActive"
:enterFromClass="transitionName === 'swipeAnimationLeft' ? $style.swipeAnimationLeft_enterFrom : $style.swipeAnimationRight_enterFrom"
@@ -70,7 +70,7 @@ const currentTabIndex = computed(() => props.tabs.findIndex(tab => tab.key === t
const pullDistance = ref(0);
const isSwipingForClass = ref(false);
let swipeAborted = false;
-const isNotUserHome = !(props.page === 'user' && tabModel.value === 'home');
+const isUserHome = props.page === 'user' && tabModel.value === 'home';
function touchStart(event: TouchEvent) {
if (!prefer.r.enableHorizontalSwipe.value) return;