2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03: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
+2
View File
@@ -245,6 +245,8 @@ class Carousel {
const direction = absDeltax / this.touchDeltaX
this.touchDeltaX = 0
// swipe left
if (direction > 0) {
this.prev()