svelte-carousel icon indicating copy to clipboard operation
svelte-carousel copied to clipboard

Incorrect number of dots in example

Open bobspace opened this issue 3 years ago • 1 comments

The Carousel example on svelte.dev has four items but only two dots.

Is that an issue with the Carousel or svelte.dev?

image

bobspace avatar Jul 01 '21 20:07 bobspace

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) : [];

raghav-kukreti avatar Jul 21 '21 02:07 raghav-kukreti