Skip to content

Commit

Permalink
Version lable 0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
mihnsen committed May 11, 2017
1 parent 5d623f5 commit 00b0c7a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-ui-carousel",
"version": "0.1.8",
"version": "0.1.9",
"authors": [
{
"name": "mihnsen",
Expand Down
8 changes: 5 additions & 3 deletions dist/ui-carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,10 @@ angular.module('ui.carousel.controllers').controller('CarouselController', ['$sc
if (!_this.options.infinite) {
if (_this.currentSlide === 0) {
_this.isClickablePrev = false;
} else if (_this.currentSlide === _this.slidesInTrack.length - 1) {
_this.isClickableNext = true;
} else if (_this.currentSlide === _this.slidesInTrack.length - _this.options.slidesToShow) {
_this.isClickableNext = false;
_this.isClickablePrev = true;
} else {
_this.isClickablePrev = true;
_this.isClickableNext = true;
Expand Down Expand Up @@ -564,8 +566,8 @@ angular.module('ui.carousel.controllers').controller('CarouselController', ['$sc
_this.isClickableNext = true;
} else {
_this.isVisibleDots = false;
_this.isVisiblePrev = false;
_this.isVisibleNext = false;
_this.isVisiblePrev = _this.options.visiblePrev || false;
_this.isVisibleNext = _this.options.visibleNext || false;
_this.isClickablePrev = false;
_this.isClickableNext = false;
}
Expand Down
Loading

0 comments on commit 00b0c7a

Please sign in to comment.