From 1752addadfbb538f0f1bfb1ed5792a0c162b1a3b Mon Sep 17 00:00:00 2001 From: Johann-S Date: Wed, 27 Mar 2019 13:37:04 +0100 Subject: Reset carousel touch delta x to prevent click transformation in swipe (#28558) --- js/src/carousel.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/src') diff --git a/js/src/carousel.js b/js/src/carousel.js index 3a9c4a47c..1a185d037 100644 --- a/js/src/carousel.js +++ b/js/src/carousel.js @@ -257,6 +257,8 @@ class Carousel { const direction = absDeltax / this.touchDeltaX + this.touchDeltaX = 0 + // swipe left if (direction > 0) { this.prev() -- cgit v1.2.3