diff options
author | Johann-S <johann.servoire@gmail.com> | 2019-03-27 15:37:04 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-03-27 15:37:04 +0300 |
commit | 1752addadfbb538f0f1bfb1ed5792a0c162b1a3b (patch) | |
tree | 5f205a6aaf4edac615678a8000257e56f73a3e09 /js/src/carousel.js | |
parent | 3c3ed3ff05b57c03b2c01ee38ece93b011afd329 (diff) |
Reset carousel touch delta x to prevent click transformation in swipe (#28558)
Diffstat (limited to 'js/src/carousel.js')
-rw-r--r-- | js/src/carousel.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/carousel.js b/js/src/carousel.js index 3a9c4a47cb..1a185d0378 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() |