Closed fritz-c closed 1 year ago
When the slideIndex has fractional digits (e.g., 0.5, 1.2), slide-visible classes are not being applied correctly.
slide-visible
Bug demo: click on next until you reach the end of the carousel and check slide 3's classes. It is missing slide-visible even though it is visible.
next
This PR fixes that.
I added unit tests for the isSlideVisible function.
isSlideVisible
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Description
When the slideIndex has fractional digits (e.g., 0.5, 1.2),
slide-visible
classes are not being applied correctly.Bug demo: click on
next
until you reach the end of the carousel and check slide 3's classes. It is missingslide-visible
even though it is visible.This PR fixes that.
Type of Change
How Has This Been Tested?
I added unit tests for the
isSlideVisible
function.