mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 04:26:58 +00:00
fix const name
This commit is contained in:
parent
e77b6cf24d
commit
7f2ff3ddcc
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
@touchend.passive="touchEnd"
|
@touchend.passive="touchEnd"
|
||||||
>
|
>
|
||||||
<Transition
|
<Transition
|
||||||
:class="[{ [$style.swiping]: isSwipingForClass, [$style.transitionChildren]: isUserHome }]"
|
:class="[{ [$style.swiping]: isSwipingForClass, [$style.transitionChildren]: isNotUserHome }]"
|
||||||
:enterActiveClass="$style.swipeAnimation_enterActive"
|
:enterActiveClass="$style.swipeAnimation_enterActive"
|
||||||
:leaveActiveClass="$style.swipeAnimation_leaveActive"
|
:leaveActiveClass="$style.swipeAnimation_leaveActive"
|
||||||
:enterFromClass="transitionName === 'swipeAnimationLeft' ? $style.swipeAnimationLeft_enterFrom : $style.swipeAnimationRight_enterFrom"
|
: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 pullDistance = ref(0);
|
||||||
const isSwipingForClass = ref(false);
|
const isSwipingForClass = ref(false);
|
||||||
let swipeAborted = false;
|
let swipeAborted = false;
|
||||||
const isUserHome = !(props.page === 'user' && tabModel.value === 'home');
|
const isNotUserHome = !(props.page === 'user' && tabModel.value === 'home');
|
||||||
|
|
||||||
function touchStart(event: TouchEvent) {
|
function touchStart(event: TouchEvent) {
|
||||||
if (!prefer.r.enableHorizontalSwipe.value) return;
|
if (!prefer.r.enableHorizontalSwipe.value) return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue