Skip to content

Commit

Permalink
fix(swiper): autoplay fails when userScrolling (didi#636)
Browse files Browse the repository at this point in the history
* fix(swiper): autoplay fails  when userScrolling

* fix(swiper): autoplay fails  when userScrolling
  • Loading branch information
msdlisper authored Feb 4, 2020
1 parent 67f2f69 commit 07d83aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/swiper/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ export default {
}
/* istanbul ignore if */
if (this.userScrolling) {
this.play(this.duration)
this.dragging = false
this.dragState = {}
return
Expand Down

0 comments on commit 07d83aa

Please sign in to comment.