A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/commit/761bc9381ba24aed751726c8213651e2014aa746 below:

fix glitching when switching slides fast (closes #58… · bootstrap-vue/bootstrap-vue@761bc93 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+5

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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