You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Took me a while to narrow it down to this, but if you use Autoplay in the initial options and try to stop the carousel, if you manually change the slide it will automatically start again. This cannot be stopped even by using click, drag, or dragged events. I feel like it should keep the status when changing slides manually.
The text was updated successfully, but these errors were encountered:
Ahh I see. I dunno if that would be the wanted behaviour. If the carousel is stopped and continued manually, why wouldn't want it to autoplay again? Like you just wanted to look at one specific slide.
Not sure about this one yet, but I will have some thoughts on that.
I have same problem as you
We manually change the slide(ex: click $('.owl-nav) ) and it will automatically start again.
This can't stop forever even by using click btn which trigger the function $('.owl-nav).trigger('stop.owl.autoplay');
But now I have resolved by following this:
// select the nav
$('.owl-nav > div').on('click', function () {
// We used the owl-carousel Event API to stop autoplay
$('.owl-carousel').trigger('stop.owl.autoplay');
var carousel = $('.owl-carousel').data('owl.carousel');// <--you can console this,let you setting
carousel.settings.autoplay = false;
carousel.options.autoplay = false;
$('.owl-carousel').trigger('refresh.owl.carousel');
});
Took me a while to narrow it down to this, but if you use Autoplay in the initial options and try to stop the carousel, if you manually change the slide it will automatically start again. This cannot be stopped even by using click, drag, or dragged events. I feel like it should keep the status when changing slides manually.
The text was updated successfully, but these errors were encountered: