[bugfix] Swipe: stop touch event propagation (#846)

This commit is contained in:
neverland 2018-04-10 17:49:54 +08:00 committed by GitHub
parent 64898e1900
commit 9367968a82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]));
}