2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +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 3c3ed3ff05
commit 1752addadf
2 changed files with 6 additions and 2 deletions
+2
View File
@@ -257,6 +257,8 @@ class Carousel {
const direction = absDeltax / this.touchDeltaX
this.touchDeltaX = 0
// swipe left
if (direction > 0) {
this.prev()