From 9ae9dd82b4e6e2e19ec7922da985ca8e9bb7f557 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Wed, 3 Apr 2024 11:33:00 +0000 Subject: [PATCH] Code Format --- components/lib/carousel/Carousel.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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();