Skip to content

Commit

Permalink
fix(carousel): rm point events disable, looping, poll time
Browse files Browse the repository at this point in the history
  • Loading branch information
toddlawton committed Jan 26, 2017
1 parent 23e7fde commit 8da595e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions dist/vue-carousel.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/themes/vue/source/js/vue-carousel.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ssense/vue-carousel",
"version": "0.4.7",
"version": "0.4.8",
"description": "A flexible, responsive, touch-friendly carousel for Vue.js",
"main": "dist/vue-carousel.min.js",
"scripts": {
Expand Down
6 changes: 1 addition & 5 deletions src/Carousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,17 +219,13 @@
advancePage(direction) {
if (direction && direction === "backward" && this.canAdvanceBackward) {
this.goToPage(this.currentPage - 1)
} else if (direction && direction === "backward" && !this.canAdvanceBackward) {
this.goToPage(this.pageCount - 1)
} else if (
(
!direction
|| (direction && direction !== "backward"))
&& this.canAdvanceForward
) {
this.goToPage(this.currentPage + 1)
} else {
this.goToPage(0)
}
},
/**
Expand Down Expand Up @@ -362,7 +358,7 @@
this.recomputeCarouselWidth()
clearInterval(this.pollInterval)
}
}, 100)
}, 50)
}
},
/**
Expand Down
1 change: 0 additions & 1 deletion src/Slide.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@
.slide {
float: left;
user-select: none;
pointer-events: none;
}
</style>

0 comments on commit 8da595e

Please sign in to comment.