mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
[Improvement] Swipe: not swipeable when page scrolling (#1425)
This commit is contained in:
@@ -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() {
|
||||||
|
Reference in New Issue
Block a user