Skip to content
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

Keep preventDefault during Carousel transition. #59

Closed
wants to merge 1 commit into from
Closed

Keep preventDefault during Carousel transition. #59

wants to merge 1 commit into from

Conversation

CamWiseOwl
Copy link

Clicking prev / next during a slide transition appends the carousel tag to the URL as there's no event handlers to call e.preventDefault().
Possibly jarring to user experience as the carousel jumps to page top.

Clicking prev / next during a slide transition appends the carousel tag to the URL as there's no event handlers to call e.preventDefault().
Possibly jarring to user experience as the carousel jumps to page top.
@thednp
Copy link
Owner

thednp commented Jun 9, 2016

Hey, thanks for the contribution. I had something like this in mind and I ended up with the current code and the reason for that is also the click handlers for page navigation (you know the dots) need a way to disable/prevent being clicked.

I would prefer a better solution and more simple: while animating, remove all click handlers for all carousel children.

@thednp thednp closed this Jun 13, 2016
thednp added a commit that referenced this pull request Jun 13, 2016
thednp added a commit that referenced this pull request Jun 13, 2016
@thednp
Copy link
Owner

thednp commented Jun 13, 2016

Please download and test latest commit. Thanks

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.

2 participants