Skip to content

Commit

Permalink
Fix error in non-loop mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzobrain committed Sep 7, 2013
1 parent 1b7698d commit 3da7d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/idangerous.swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ var Swiper = function (selector, params) {
}

_this.clickedSlideIndex = _this.slides.indexOf(_this.clickedSlide);
_this.clickedSlideLoopIndex = _this.clickedSlideIndex - _this.loopedSlides;
_this.clickedSlideLoopIndex = _this.clickedSlideIndex - (_this.loopedSlides || 0);
}

_this.allowLinks = true;
Expand Down

0 comments on commit 3da7d72

Please sign in to comment.