diff options
author | Johann-S <johann.servoire@gmail.com> | 2019-03-27 15:37:04 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-03-27 21:57:28 +0300 |
commit | 8fda884ad3c059426dd7861153c32e96e8034a20 (patch) | |
tree | 71719fa285f89214a167bd29059f0b2c566891b8 /js/src/carousel.js | |
parent | c0b2f72a06aeff2d4cdcac53a571c6c2e7f6038a (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 36176dd9c0..8aeb9e0388 100644 --- a/js/src/carousel.js +++ b/js/src/carousel.js @@ -245,6 +245,8 @@ class Carousel { const direction = absDeltax / this.touchDeltaX + this.touchDeltaX = 0 + // swipe left if (direction > 0) { this.prev() |