Skip to content

Commit 0e54839

Browse files
tmorehousejacobmllr95
authored andcommitted
fix(carousel): reset touchDeltaX to prevent click transformed in swipe (#3734)
Based on twbs/bootstrap#28558
1 parent 62c66bb commit 0e54839

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/carousel/carousel.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ export const BCarousel = /*#__PURE__*/ Vue.extend({
406406
return
407407
}
408408
const direction = absDeltaX / this.touchDeltaX
409+
// Reset touch delta X
410+
// https://github.com/twbs/bootstrap/pull/28558
411+
this.touchDeltaX = 0
409412
if (direction > 0) {
410413
// Swipe left
411414
this.prev()

0 commit comments

Comments
 (0)