mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-23 15:09:16 +08:00
[bugfix] Swipe: stop touch event propagation (#846)
This commit is contained in:
parent
64898e1900
commit
9367968a82
@ -140,6 +140,7 @@ export default create({
|
||||
|
||||
if (this.direction === 'horizontal') {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
this.deltaX = event.touches[0].clientX - this.startX;
|
||||
this.move(0, this.range(this.deltaX, [-this.width, this.width]));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user