Incorrect number of dots in example
Opened this issue · 1 comments
bobspace commented
The Carousel example on svelte.dev has four items but only two dots.
Is that an issue with the Carousel or svelte.dev?
raghav-kukreti commented
The dots don't really demonstrate the number of items but the number of slide actions available to view all items. That's what I've been looking at them as.
On looking at the source, this line helps understand it's purpose
$: totalDots = controller ? Math.ceil(controller.innerElements.length / currentPerPage) : [];