Releases: lifarl/react-scroll-snap-slider
Releases · lifarl/react-scroll-snap-slider
Release v2.0.5
Release v2.0.4
- Fix an error in safari during component unmount
Release v2.0.3
- exported Styled elements for easy style overrides
Release v2.0.2
- fixed a type issue
Release v2.0.1
- fixed a bug to ensure update of scroll status on changed slide count
- exposed slider ref for custom scroll indicators.
Release v2.0.0
Breaking Changes:
- changed
onScroll
toonScrollStart
to better reflect the actual function - changed
afterScroll
toonScrollEnd
- changed intersectionThreshold from 0.66 to 0.5 to determine that the slide is visible when 50% of it is visible
- changed IntersectionObserver root to the slider instead of null so that whether the slide is visible or not is based on it's position on the slider and not the entire viewport
Features
- added
onSlidesVisibilityChange
function fires when the visible slides change and receives the index of the middle visible slide
fixed:
Fixes
- fixed:
isSliderScrollable
calculation - fixed: some change in IntersectionObserver
Release v1.0.2
- Added
aria-hidden
attribute for accessibility
Release v1.0.1
chore(version): bump to 1.0.1
v0.7.0-alpha.1
chore(version): bump to 0.7.0-alpha.1
Release v0.6.0-alpha.1
- transpile to es5