diff --git a/components/lib/carousel/Carousel.vue b/components/lib/carousel/Carousel.vue index a1e682290..3b9a3e0c5 100755 --- a/components/lib/carousel/Carousel.vue +++ b/components/lib/carousel/Carousel.vue @@ -410,9 +410,7 @@ export default { }, onTouchMove(e) { const touchobj = e.changedTouches[0]; - const diff = this.isVertical() - ? touchobj.pageY - this.startPos.y - : touchobj.pageX - this.startPos.x; + const diff = this.isVertical() ? touchobj.pageY - this.startPos.y : touchobj.pageX - this.startPos.x; if (Math.abs(diff) > this.swipeThreshold && e.cancelable) { e.preventDefault();