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 15:37:04 +0300
commit1752addadfbb538f0f1bfb1ed5792a0c162b1a3b (patch)
tree5f205a6aaf4edac615678a8000257e56f73a3e09 /js/src/carousel.js
parent3c3ed3ff05b57c03b2c01ee38ece93b011afd329 (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 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()