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 76500af commit ca0561aCopy full SHA for ca0561a
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'
@@ -270,8 +271,8 @@ export const BCarousel = /*#__PURE__*/ Vue.extend({
270
271
if (this.isSliding) {
272
// Schedule slide after sliding complete
273
this.$once('sliding-end', () => {
- // Wrap in setTimeout to allow the slide to properly finish to avoid glitching
274
- setTimeout(() => this.setSlide(slide, direction))
+ // Wrap in `requestAF()` to allow the slide to properly finish to avoid glitching
275
+ requestAF(() => this.setSlide(slide, direction))
276
})
277
return
278
}
0 commit comments