A new Carousel experience for the modern Web
Fix a minor bug related to customEvents
.
BREAKING CHANGES
This new version introduces an improvement that regard the custom event that the carousel emit. Previously we were using browser native events to emit custom events, and we were adding an event listener for every event; while this solution was working perfectly fine, it required to create multiple handlers and listeners. To improve the performances, reduce the amount of boilerplate from development experience to listen for a particular event and eliminate the need of create new listeners for every event, we changed the way in which events are dispatched
and listened
, implementing Observables through rxjs
.
Check https://react-spring-carousel-js.emilianobucci.com/events to eventually update your implementation.
This small release implements the disableGestures
prop to programmatically disable the gesture feature.
This new minor release introduces a small improvement (that also fix some small bugs) related to the clean phase of the custom hook used to listen to the carousel events. This minor release also includes a small improvement regarding the use of the carousel context. Now you can use useSpringCarouselContext
or useTransitionCarouselContext
safetely (without having to manually import the react useContext
hook) and throwing an error if those context is used outside the proper scope.
prepareThumbsData
method by removing the necessity to also pass the renderItem
property as it isn't needed to render the thumbs.itemsPerSlide
prop.withLoop={true}
- to define a starting position of the current active item through the initialStartingPosition
prop.initialActiveItem
prop.slideTo
methods logic.RSCJS
prefix.