Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2019-03-27 15:37:04 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-03-27 21:57:28 +0300
commit8fda884ad3c059426dd7861153c32e96e8034a20 (patch)
tree71719fa285f89214a167bd29059f0b2c566891b8 /js/src/carousel.js
parentc0b2f72a06aeff2d4cdcac53a571c6c2e7f6038a (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.js2
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()