Skip to content
This repository has been archived by the owner on Jan 17, 2021. It is now read-only.

Commit

Permalink
Merge branch 'hotfix-slider'
Browse files Browse the repository at this point in the history
  • Loading branch information
crossjs committed Nov 2, 2016
2 parents a6e7a76 + b2c016f commit a800e6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "PLATO",
"version": "2.0.1",
"version": "2.0.2",
"description": "a Boilerplate for mobile SPAs use vue, vuex, vue-router",
"license": "MIT",
"main": "src/index.js",
Expand Down
6 changes: 5 additions & 1 deletion src/components/c-slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,12 @@ export default {
if (!this.intervalId) {
this.intervalId = setInterval(() => {
if (!this.isDragging && this.slideCount > 1) {
this.slideReady = false
this.offset = this.minOffset
this.go(this.nextIndex)
// default transtion duration is 200ms
setTimeout(() => {
this.go(this.nextIndex)
}, this.transition ? 200 : 0)
}
}, this.interval * 1000)
}
Expand Down

0 comments on commit a800e6d

Please sign in to comment.