@@ -648,7 +648,6 @@ const SwiperWrapper = forwardRef<HandlerRef<View, SwiperProps>, SwiperProps>((pr
648
648
const gesturePan = Gesture . Pan ( )
649
649
. onBegin ( ( e ) => {
650
650
'worklet'
651
- console . log ( '------------------onBegin' )
652
651
if ( ! step . value ) return
653
652
touchfinish . value = false
654
653
cancelAnimation ( offset )
@@ -667,7 +666,6 @@ const SwiperWrapper = forwardRef<HandlerRef<View, SwiperProps>, SwiperProps>((pr
667
666
}
668
667
// 处理用户一直拖拽到临界点的场景, 不会执行onEnd
669
668
if ( ! circularShared . value && ! canMove ( eventData ) ) {
670
- console . log ( '------------------onTouchesMove' )
671
669
return
672
670
}
673
671
const { isBoundary, resetOffset } = reachBoundary ( eventData )
@@ -681,7 +679,6 @@ const SwiperWrapper = forwardRef<HandlerRef<View, SwiperProps>, SwiperProps>((pr
681
679
. onTouchesUp ( ( e ) => {
682
680
'worklet'
683
681
if ( touchfinish . value ) return
684
- console . log ( '------------------onTouchesUp' , touchfinish . value )
685
682
const touchEventData = e . changedTouches [ 0 ]
686
683
const moveDistance = touchEventData [ strAbso ] - moveTranstion . value
687
684
touchfinish . value = true
@@ -690,7 +687,6 @@ const SwiperWrapper = forwardRef<HandlerRef<View, SwiperProps>, SwiperProps>((pr
690
687
}
691
688
// 用户手指按下起来, 需要计算正确的位置, 比如在滑动过程中突然按下然后起来,需要计算到正确的位置
692
689
if ( ! circularShared . value && ! canMove ( eventData ) ) {
693
- console . log ( '------------------onTouchesUp:1' )
694
690
return
695
691
}
696
692
const strVelocity = moveDistance / ( new Date ( ) . getTime ( ) - moveTime . value ) * 1000
0 commit comments