+5
-1
lines changedFilter options
+5
-1
lines changed Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ import {
10
10
getActiveElement,
11
11
reflow,
12
12
removeClass,
13
+
requestAF,
13
14
selectAll,
14
15
setAttr
15
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
270
271
if (this.isSliding) {
271
272
// Schedule slide after sliding complete
272
-
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
+
})
273
277
return
274
278
}
275
279
this.direction = direction
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4