ui
ui copied to clipboard
Carousel calculates slidesPerPage wrong
Problem
When using slidesPerPage: auto with adding a margin-right to .carousel__slide the Carousel calculates the number of slides per page wrong. See this JS Fiddle
Actual behavior
The first page shows slides 1, 2, 3. After clicking the next button, the second page shows slides 3, 4, 5
Expected behavior
The first page shows slides 1, 2, 3. After clicking the next button, the second page shows slides 4, 5, 6