Skip to content

Feature/pass through drag callbacks #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 13, 2019

Conversation

mrbinky3000
Copy link
Collaborator

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.

Matthew Toledo added 8 commits August 13, 2019 13:38
These names were misleading.  They are not related in any way to React’s event types.
Not sure why we are stopping event propagation in the slider tray.  We should allow events to bubble up to maximize configurability for Pure React Carousel consumers.  Commenting out for now, will remove completely if no bugs arise from this change.
Created a new example carousel to demonstrait how to pass events to the Slider tray element.
@mrbinky3000 mrbinky3000 merged commit fe25e75 into master Aug 13, 2019
@mrbinky3000 mrbinky3000 deleted the feature/pass-through-drag-callbacks branch August 13, 2019 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant