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

iOS: Carousel stops cycling after clicking next or prev button or carousel-indicators #11967

Closed
swsg opened this issue Dec 21, 2013 · 9 comments · Fixed by #14626
Closed

iOS: Carousel stops cycling after clicking next or prev button or carousel-indicators #11967

swsg opened this issue Dec 21, 2013 · 9 comments · Fixed by #14626

Comments

@swsg
Copy link

swsg commented Dec 21, 2013

If a carousel is auto-cycling, everything works fine on Desktops. If you click one of the buttons (prev, next or carousel-indicators), the carousel starts auto-cycling again after reaching the new slide.

If you click one of these buttons on android-phone or I-phone, the carousel will not start to auto-cycle again after reaching the new slide.

Bootstrap Version: 3.0.2 and 3.0.3

@cvrebert
Copy link
Collaborator

What version of iOS?

@swsg
Copy link
Author

swsg commented Dec 22, 2013

iOS 7.0.3 . Tomorrow I can check it on another iOS Version. The Android versions are 4.1.1 and 4.2.2.

@cvrebert
Copy link
Collaborator

We don't officially support the non-Chrome Android Browser.

@swsg
Copy link
Author

swsg commented Dec 22, 2013

I just checked it in the chrome Android Browser. Same problem here in both mentioned Android versions.

@swsg
Copy link
Author

swsg commented Dec 22, 2013

The carousel shows the same behaviour on iOS 6.1.3.

@mdo mdo modified the milestones: v3.2.0, v3.1.1 Feb 10, 2014
@mdo
Copy link
Member

mdo commented Jun 19, 2014

Just tried out the docs again, see the same problem. Guessing it's a problem of hover/focus as iOS doesn't reset that automagically.

@cvrebert
Copy link
Collaborator

Also confirmed in v3.1.1 on Android Chrome.

@swsg
Copy link
Author

swsg commented Jul 16, 2014

This fixed it for me:
jQuery('.carousel-indicators').click(function(){
jQuery('.carousel').carousel('cycle');
});

jQuery('.carousel-control').click(function(){
jQuery('.carousel').carousel('cycle');
});

@hnrch02
Copy link
Collaborator

hnrch02 commented Sep 16, 2014

This is because of the pause: 'hover' default. If you turn the pause option off, it works on iOS again: http://jsbin.com/reseg/2. A fix for this could be to only enable the pause option in non-touch browsers (By checking 'ontouchstart' in document.documentElement, like we do for dropdowns), see http://jsbin.com/reseg/3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants