Skip to content

Commit 5679fea

Browse files
author
luyongfang
committed
删除console
1 parent 9e17240 commit 5679fea

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/webpack-plugin/lib/runtime/components/react/mpx-swiper.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,6 @@ const SwiperWrapper = forwardRef<HandlerRef<View, SwiperProps>, SwiperProps>((pr
648648
const gesturePan = Gesture.Pan()
649649
.onBegin((e) => {
650650
'worklet'
651-
console.log('------------------onBegin')
652651
if (!step.value) return
653652
touchfinish.value = false
654653
cancelAnimation(offset)
@@ -667,7 +666,6 @@ const SwiperWrapper = forwardRef<HandlerRef<View, SwiperProps>, SwiperProps>((pr
667666
}
668667
// 处理用户一直拖拽到临界点的场景, 不会执行onEnd
669668
if (!circularShared.value && !canMove(eventData)) {
670-
console.log('------------------onTouchesMove')
671669
return
672670
}
673671
const { isBoundary, resetOffset } = reachBoundary(eventData)
@@ -681,7 +679,6 @@ const SwiperWrapper = forwardRef<HandlerRef<View, SwiperProps>, SwiperProps>((pr
681679
.onTouchesUp((e) => {
682680
'worklet'
683681
if (touchfinish.value) return
684-
console.log('------------------onTouchesUp', touchfinish.value)
685682
const touchEventData = e.changedTouches[0]
686683
const moveDistance = touchEventData[strAbso] - moveTranstion.value
687684
touchfinish.value = true
@@ -690,7 +687,6 @@ const SwiperWrapper = forwardRef<HandlerRef<View, SwiperProps>, SwiperProps>((pr
690687
}
691688
// 用户手指按下起来, 需要计算正确的位置, 比如在滑动过程中突然按下然后起来,需要计算到正确的位置
692689
if (!circularShared.value && !canMove(eventData)) {
693-
console.log('------------------onTouchesUp:1')
694690
return
695691
}
696692
const strVelocity = moveDistance / (new Date().getTime() - moveTime.value) * 1000

0 commit comments

Comments
 (0)