From 35caa073f947b355ed26ce0623373b26523deb6a Mon Sep 17 00:00:00 2001 From: "B. Tiedemann" Date: Wed, 24 Feb 2016 08:22:52 +0100 Subject: [PATCH] Something wrong with arrows in vertical mode --- slick/slick.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/slick/slick.js b/slick/slick.js index 42cb531fe..339722429 100644 --- a/slick/slick.js +++ b/slick/slick.js @@ -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; @@ -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); }