mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Improvement] Swipe: not swipeable when page scrolling (#1425)
This commit is contained in:
parent
8b511dcc7b
commit
9b688bbd06
@ -177,9 +177,8 @@ export default create({
|
|||||||
) {
|
) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
}
|
|
||||||
|
|
||||||
this.move(0, Math.min(Math.max(this.delta, -this.size), this.size));
|
this.move(0, Math.min(Math.max(this.delta, -this.size), this.size));
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onTouchEnd() {
|
onTouchEnd() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user