Skip to content

Commit

Permalink
fix(carousel): reset touchDeltaX to prevent click transformed in sw…
Browse files Browse the repository at this point in the history
…ipe (#3734)

Based on twbs/bootstrap#28558
  • Loading branch information
tmorehouse authored and jacobmllr95 committed Jul 22, 2019
1 parent 62c66bb commit 0e54839
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/carousel/carousel.js
Expand Up @@ -406,6 +406,9 @@ export const BCarousel = /*#__PURE__*/ Vue.extend({
return
}
const direction = absDeltaX / this.touchDeltaX
// Reset touch delta X
// https://github.com/twbs/bootstrap/pull/28558
this.touchDeltaX = 0
if (direction > 0) {
// Swipe left
this.prev()
Expand Down

0 comments on commit 0e54839

Please sign in to comment.