summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarie <github@yuugi.dev>2025-05-07 08:26:07 +0200
committerMarie <github@yuugi.dev>2025-05-07 08:26:07 +0200
commit7f2ff3ddcc3d1a27a9ce76f710b3f358ef94c621 (patch)
tree5b8a31e8dfcdd1a34021da80e27a3b54b9d1a2b6
parentfix background tomfoolery for mobile users (diff)
downloadsharkey-7f2ff3ddcc3d1a27a9ce76f710b3f358ef94c621.tar.gz
sharkey-7f2ff3ddcc3d1a27a9ce76f710b3f358ef94c621.tar.bz2
sharkey-7f2ff3ddcc3d1a27a9ce76f710b3f358ef94c621.zip
fix const name
-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 c304cad5cd..892d375751 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]: isUserHome }]"
+ :class="[{ [$style.swiping]: isSwipingForClass, [$style.transitionChildren]: isNotUserHome }]"
: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 isUserHome = !(props.page === 'user' && tabModel.value === 'home');
+const isNotUserHome = !(props.page === 'user' && tabModel.value === 'home');
function touchStart(event: TouchEvent) {
if (!prefer.r.enableHorizontalSwipe.value) return;