diff options
| author | Johann-S <[email protected]> | 2019-03-27 13:37:04 +0100 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-03-27 14:37:04 +0200 |
| commit | 1752addadfbb538f0f1bfb1ed5792a0c162b1a3b (patch) | |
| tree | 5f205a6aaf4edac615678a8000257e56f73a3e09 /js/src | |
| parent | 3c3ed3ff05b57c03b2c01ee38ece93b011afd329 (diff) | |
| download | bootstrap-1752addadfbb538f0f1bfb1ed5792a0c162b1a3b.tar.xz bootstrap-1752addadfbb538f0f1bfb1ed5792a0c162b1a3b.zip | |
Reset carousel touch delta x to prevent click transformation in swipe (#28558)
Diffstat (limited to 'js/src')
| -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 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() |
