[Improvement] Swipe: not swipeable when page scrolling (#1425)

This commit is contained in:
neverland 2018-07-06 19:39:16 +08:00 committed by GitHub
parent 8b511dcc7b
commit 9b688bbd06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,9 +177,8 @@ export default create({
) {
event.preventDefault();
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() {