vue-slick icon indicating copy to clipboard operation
vue-slick copied to clipboard

Infinite loop (getDotCount)

Open johnnytn opened this issue 5 years ago • 0 comments

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

johnnytn avatar Mar 30 '20 17:03 johnnytn