mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Swipe): avoid resetting position on multi-finger touch (#11503)
This commit is contained in:
parent
e75e680d9f
commit
9306db90ca
@ -302,7 +302,12 @@ export default defineComponent({
|
|||||||
let touchStartTime: number;
|
let touchStartTime: number;
|
||||||
|
|
||||||
const onTouchStart = (event: TouchEvent) => {
|
const onTouchStart = (event: TouchEvent) => {
|
||||||
if (!props.touchable) return;
|
if (
|
||||||
|
!props.touchable ||
|
||||||
|
// avoid resetting position on multi-finger touch
|
||||||
|
event.touches.length > 1
|
||||||
|
)
|
||||||
|
return;
|
||||||
|
|
||||||
touch.start(event);
|
touch.start(event);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user