Skip to content

Commit 76500af

Browse files
committed
fix glitchingg
1 parent 9ed1060 commit 76500af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/carousel/carousel.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,10 @@ export const BCarousel = /*#__PURE__*/ Vue.extend({
269269
// Don't change slide while transitioning, wait until transition is done
270270
if (this.isSliding) {
271271
// Schedule slide after sliding complete
272-
this.$once('sliding-end', () => this.setSlide(slide, direction))
272+
this.$once('sliding-end', () => {
273+
// Wrap in setTimeout to allow the slide to properly finish to avoid glitching
274+
setTimeout(() => this.setSlide(slide, direction))
275+
})
273276
return
274277
}
275278
this.direction = direction

0 commit comments

Comments
 (0)