1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-10-02 16:28:26 +02:00

Reset carousel touch delta x to prevent click transformation in swipe (#28558)

This commit is contained in:
Johann-S
2019-03-27 13:37:04 +01:00
committed by XhmikosR
parent c0b2f72a06
commit 8fda884ad3
2 changed files with 6 additions and 2 deletions

View File

@@ -245,6 +245,8 @@ class Carousel {
const direction = absDeltax / this.touchDeltaX
this.touchDeltaX = 0
// swipe left
if (direction > 0) {
this.prev()