Skip to content

Commit

Permalink
Merge pull request #1840 from ethanclevenger91/dots-fix
Browse files Browse the repository at this point in the history
Dots fix on slidesToShow
  • Loading branch information
kenwheeler committed Nov 30, 2015
2 parents 63c5454 + d81cca2 commit 925dd45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slick/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -998,15 +998,15 @@
if (_.options.infinite === true) {
while (breakPoint < _.slideCount) {
++pagerQty;
breakPoint = counter + _.options.slidesToShow;
breakPoint = counter + _.options.slidesToScroll;
counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
}
} else if (_.options.centerMode === true) {
pagerQty = _.slideCount;
} else {
while (breakPoint < _.slideCount) {
++pagerQty;
breakPoint = counter + _.options.slidesToShow;
breakPoint = counter + _.options.slidesToScroll;
counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
}
}
Expand Down

0 comments on commit 925dd45

Please sign in to comment.