diff --git a/slick/slick.js b/slick/slick.js index b777a9221..e639db83b 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;