We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ed1060 commit 761bc93Copy full SHA for 761bc93
src/components/carousel/carousel.js
@@ -10,6 +10,7 @@ import {
10
getActiveElement,
11
reflow,
12
removeClass,
13
+ requestAF,
14
selectAll,
15
setAttr
16
} from '../../utils/dom'
@@ -269,7 +270,10 @@ export const BCarousel = /*#__PURE__*/ Vue.extend({
269
270
// Don't change slide while transitioning, wait until transition is done
271
if (this.isSliding) {
272
// Schedule slide after sliding complete
- this.$once('sliding-end', () => this.setSlide(slide, direction))
273
+ this.$once('sliding-end', () => {
274
+ // Wrap in `requestAF()` to allow the slide to properly finish to avoid glitching
275
+ requestAF(() => this.setSlide(slide, direction))
276
+ })
277
return
278
}
279
this.direction = direction
0 commit comments