Skip to content

Commit

Permalink
Something wrong with arrows in vertical mode
Browse files Browse the repository at this point in the history
  • Loading branch information
B. Tiedemann committed Feb 24, 2016
1 parent 56362d5 commit 35caa07
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions slick/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,9 @@
}
} else if (_.options.centerMode === true) {
pagerQty = _.slideCount;
} else {
} else if(!_.options.asNavFor) {
pagerQty = 1 + Math.ceil((_.slideCount - _.options.slidesToShow) / _.options.slidesToScroll);
}else {
while (breakPoint < _.slideCount) {
++pagerQty;
breakPoint = counter + _.options.slidesToScroll;
Expand Down Expand Up @@ -2373,14 +2375,6 @@
return;
}

if(_.options.infinite === false && (index + _.options.slidesToShow) > _.slideCount){
return;
}

if(_.options.infinite === false && index < 0){
return;
}

if (sync === false) {
_.asNavFor(index);
}
Expand Down

0 comments on commit 35caa07

Please sign in to comment.