From 67b17e7ed2345f3d3539a952c6e19c6302609b4b Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 4 Oct 2018 22:18:00 +0800 Subject: [PATCH] [bugfix] Swipe: multi finger (#1890) --- packages/swipe/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/swipe/index.vue b/packages/swipe/index.vue index bcfad6095..0b15918c3 100644 --- a/packages/swipe/index.vue +++ b/packages/swipe/index.vue @@ -175,7 +175,7 @@ export default create({ }, onTouchMove(event) { - if (!this.touchable) return; + if (!this.touchable || !this.swiping) return; this.touchMove(event); @@ -190,14 +190,14 @@ export default create({ }, onTouchEnd() { - if (!this.touchable) return; + if (!this.touchable || !this.swiping) return; if (this.delta) { const offset = this.vertical ? this.offsetY : this.offsetX; this.move(offset > 50 ? (this.delta > 0 ? -1 : 1) : 0); - this.swiping = false; } + this.swiping = false; this.autoPlay(); },