A highly impartial suite of React components that can be assembled by the consumer to create a carousel with almost no limits on DOM structure or CSS styles. If you're tired of fighting some other developer's CSS and DOM structure, this carousel is for you.
MIT License
Bot releases are visible (Hide)
Published by mrbinky3000 about 5 years ago
Removed deprecated React Lifecycle methods to silence warnings when developing in React 16.9
Published by mrbinky3000 about 5 years ago
Initially, this code was created to address #155 "onDragStart events don't fire when dragging slider" However, it turns out that drag events are not firing for another reason entirely that isn't due to an error in our code.
Added example carousel 11, a new carousel that demonstrates how to attach event handlers to the slider tray tag.
Removed stopPropagation() calls from our internal event handlers. Not sure why they were added. Removing these didn't seem to affect the demos. Allowing the events to propagate increases the customizability of our carousel components.
Lastly, I renamed some misleading class method names relating to drag start and end. These methods had nothing to do with React's onDragStart and onDragEnd synthetic events. The names confused developers.
The <Slider></Slider>
component contains several elements. There was a request (#139) to be able to pass custom event handlers to the "tray" element inside the Slider component. You can now pass whatever props you want to the tray element, including React event handling attributes like onClick, onMouseDown, etc.
Any action handlers passed in that are also used internally by pure react carousel are called as a callback by our internal event handlers.
Published by mrbinky3000 almost 6 years ago
Published by mrbinky3000 almost 6 years ago
Published by mrbinky3000 almost 6 years ago
Bugfixes
Published by mrbinky3000 almost 6 years ago