diff --git a/packages/vant/src/image-preview/ImagePreviewItem.tsx b/packages/vant/src/image-preview/ImagePreviewItem.tsx index 75bc9dbdb..8cfcb7b7d 100644 --- a/packages/vant/src/image-preview/ImagePreviewItem.tsx +++ b/packages/vant/src/image-preview/ImagePreviewItem.tsx @@ -279,7 +279,7 @@ export default defineComponent({ return ( {renderIndexes()} diff --git a/packages/vant/src/number-keyboard/NumberKeyboard.tsx b/packages/vant/src/number-keyboard/NumberKeyboard.tsx index 36fbd4ace..7b8dbb7c9 100644 --- a/packages/vant/src/number-keyboard/NumberKeyboard.tsx +++ b/packages/vant/src/number-keyboard/NumberKeyboard.tsx @@ -280,10 +280,8 @@ export default defineComponent({ unfit: !props.safeAreaInsetBottom, 'with-title': !!Title, })} - onTouchstart={stopPropagation} onAnimationend={onAnimationEnd} - // @ts-ignore - onWebkitAnimationEnd={onAnimationEnd} + onTouchstartPassive={stopPropagation} > {Title}
diff --git a/packages/vant/src/number-keyboard/NumberKeyboardKey.tsx b/packages/vant/src/number-keyboard/NumberKeyboardKey.tsx index 5fd37bcdb..2e5b6f63a 100644 --- a/packages/vant/src/number-keyboard/NumberKeyboardKey.tsx +++ b/packages/vant/src/number-keyboard/NumberKeyboardKey.tsx @@ -88,8 +88,8 @@ export default defineComponent({ return () => (
diff --git a/packages/vant/src/password-input/PasswordInput.tsx b/packages/vant/src/password-input/PasswordInput.tsx index ddf6258af..0ed8307fb 100644 --- a/packages/vant/src/password-input/PasswordInput.tsx +++ b/packages/vant/src/password-input/PasswordInput.tsx @@ -78,7 +78,7 @@ export default defineComponent({
    {renderPoints()}
diff --git a/packages/vant/src/picker/PickerColumn.tsx b/packages/vant/src/picker/PickerColumn.tsx index 66f917526..a1abe0372 100644 --- a/packages/vant/src/picker/PickerColumn.tsx +++ b/packages/vant/src/picker/PickerColumn.tsx @@ -308,7 +308,7 @@ export default defineComponent({ return () => (
diff --git a/packages/vant/src/rate/Rate.tsx b/packages/vant/src/rate/Rate.tsx index 8cdac65ff..127ad54ba 100644 --- a/packages/vant/src/rate/Rate.tsx +++ b/packages/vant/src/rate/Rate.tsx @@ -279,7 +279,7 @@ export default defineComponent({ tabindex={props.disabled ? undefined : 0} aria-disabled={props.disabled} aria-readonly={props.readonly} - onTouchstart={onTouchStart} + onTouchstartPassive={onTouchStart} onTouchmove={onTouchMove} > {list.value.map(renderStar)} diff --git a/packages/vant/src/slider/Slider.tsx b/packages/vant/src/slider/Slider.tsx index 9ed73eeb1..cd53485e7 100644 --- a/packages/vant/src/slider/Slider.tsx +++ b/packages/vant/src/slider/Slider.tsx @@ -301,7 +301,7 @@ export default defineComponent({ aria-disabled={props.disabled || undefined} aria-readonly={props.readonly || undefined} aria-orientation={props.vertical ? 'vertical' : 'horizontal'} - onTouchstart={(event) => { + onTouchstartPassive={(event) => { if (typeof index === 'number') { // save index of current button buttonIndex = index; diff --git a/packages/vant/src/stepper/Stepper.tsx b/packages/vant/src/stepper/Stepper.tsx index 407db9675..4935f0c16 100644 --- a/packages/vant/src/stepper/Stepper.tsx +++ b/packages/vant/src/stepper/Stepper.tsx @@ -259,7 +259,7 @@ export default defineComponent({ actionType = type; onChange(); }, - onTouchstart: () => { + onTouchstartPassive: () => { actionType = type; onTouchStart(); }, diff --git a/packages/vant/src/swipe-cell/SwipeCell.tsx b/packages/vant/src/swipe-cell/SwipeCell.tsx index d00987a6a..173c0a8c7 100644 --- a/packages/vant/src/swipe-cell/SwipeCell.tsx +++ b/packages/vant/src/swipe-cell/SwipeCell.tsx @@ -220,7 +220,7 @@ export default defineComponent({ ref={root} class={bem()} onClick={getClickHandler('cell', lockClick)} - onTouchstart={onTouchStart} + onTouchstartPassive={onTouchStart} onTouchmove={onTouchMove} onTouchend={onTouchEnd} onTouchcancel={onTouchEnd} diff --git a/packages/vant/src/swipe/Swipe.tsx b/packages/vant/src/swipe/Swipe.tsx index 436048a64..85f6e8677 100644 --- a/packages/vant/src/swipe/Swipe.tsx +++ b/packages/vant/src/swipe/Swipe.tsx @@ -440,7 +440,7 @@ export default defineComponent({