Bug Fixes
-
Fix infinite loop in
buildDotswhenslidesToShowresolves to0(#274).When
slidesToShow: 'auto'is combined withexactWidth: trueand the glider initializes inside a hidden container (e.g. a closed drawer or tab),clientWidthis0, which causedslidesToShowto be computed as0.buildDotsthen evaluatedMath.ceil(N / 0) = Infinity, locking the page.buildDotsnow bails out and clears any existing dots whenslidesToShowis falsy. On subsequent refresh (once the container has a real width) dots are rebuilt normally.