-
-
Notifications
You must be signed in to change notification settings - Fork 78.5k
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
Inconsistent carousel .pause() bahaviour #32596
Comments
The default behavior is to pause on |
Pause on hover or focus for mobile users is what I need, coincidentally. Even if not, I would expect the auto-pause to not interfere with a manually triggered pause. I feel the behaviour is not as expected and inconsistent. Sorry for the weird label btw |
I'm experiencing same issue here with bootstrap 4.6.0:
While we do minimal navigation (like scrolling 2 - 3 times), auto-scroll doesn't happen but, the more user interact with the carousel, the change gets higher and higher and ends up in a state where it can scroll between 2-5 times at the same moment, like accumulated This carousel is attached with tab navigation but both functions doesn't seems to collide, saw no event triggering thanks to carousel. Also tried with a different scope, using always I have another function that calls And no, I don't have another carousel with a scope of Any ideas? |
Whem pausing a carousel using
.pause()
, I see inconsistent behaviour.I expect what happens on Desktop Firefox:
Under some conditions, manual sliding does resume auto-sliding. So far this happens with one of these conditions:
So here are my questions:
.pause()
which disables the manual sliding options too might be handy (.dispose()
seems to be very "light")?When calling
.pause()
on a Carousel object, mobile users will still unpause after an interaction.Here's a jsfiddle: https://jsfiddle.net/4nqr1od2/
As mentioned above, I see inconsistencies on jsfiddle vs local server.
Note that the carousel starts as auto-sliding and has a 1s interval. The Button indicates which action should be expected to be performed on click; the actual performed action based on
carousel._isPaused
is logged and highlighted.The text was updated successfully, but these errors were encountered: