提交 ef91b40d 编写于 作者: D dolymood

fix(slide): update currentIndex in scrollEnd handler

#278
上级 8da8caa5
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册