isNotUserHome > isUserHome

This commit is contained in:
Marie 2025-05-07 10:46:17 +02:00
parent 7f2ff3ddcc
commit f1b0ff8f5f
No known key found for this signature in database
GPG key ID: 7ADF6C9CD9A28555

View file

@ -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;