Skip to content

Commit

Permalink
fix(slide): update currentIndex in scrollEnd handler
Browse files Browse the repository at this point in the history
  • Loading branch information
dolymood committed Aug 21, 2018
1 parent 8da8caa commit ef91b40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/slide/slide.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,10 @@
this.slide = new BScroll(this.$refs.slide, options)
this.slide.on('scrollEnd', this._onScrollEnd)
this.slide.goToPage(this.currentPageIndex, 0, 0)
this.slide.on('scrollEnd', this._onScrollEnd)
/* dispatch scroll position constantly */
if (this.options.listenScroll && this.options.probeType === 3) {
this.slide.on('scroll', this._onScroll)
Expand Down

0 comments on commit ef91b40

Please sign in to comment.