There was an error while loading. Please reload this page.
1 parent 4097015 commit 57e65e9Copy full SHA for 57e65e9
1 file changed
components/swiper/index.vue
@@ -189,12 +189,14 @@ export default {
189
if (this.__resizeTimeout__) {
190
clearTimeout(this.__resizeTimeout__)
191
}
192
- this.stop()
193
+ // if swiper stoped originally, keep status
194
+ const isStoped = this.isStoped
195
const startIndex = this.index
196
+ !isStoped && this.stop()
197
this.__resizeTimeout__ = setTimeout(() => {
198
this.$_reInitItems(startIndex)
- this.play(this.duration)
199
+ !isStoped && this.play(this.duration)
200
}, 300)
201
},
202
$_onDragStart(e) {
0 commit comments