mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
[bugfix] Swipe: unable to scroll page when opened (#3056)
This commit is contained in:
@@ -72,11 +72,8 @@ export default sfc({
|
||||
}
|
||||
|
||||
this.dragging = true;
|
||||
this.startOffset = this.offset;
|
||||
this.touchStart(event);
|
||||
|
||||
if (this.opened) {
|
||||
this.startX -= this.offset;
|
||||
}
|
||||
},
|
||||
|
||||
onDrag(event) {
|
||||
@@ -88,7 +85,7 @@ export default sfc({
|
||||
|
||||
if (this.direction === 'horizontal') {
|
||||
event.preventDefault();
|
||||
this.swipeMove(this.deltaX);
|
||||
this.swipeMove(this.deltaX + this.startOffset);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user