vue-slick
vue-slick copied to clipboard
Infinite loop (getDotCount)
if (_.options.infinite === true) {
if (_.slideCount <= _.options.slidesToShow) {
++pagerQty;
} else {
while (breakPoint < _.slideCount) {
++pagerQty;
breakPoint = counter + _.options.slidesToScroll;
counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
}
}
}
If you are using "auto scroll" and your slidesToScroll and slidesToShow are 0 there will be a infinite loop, cuz counter will never increment