This is a (multiple allowed):
Initialized autoplay-example with following JS:
var swiper = new Swiper('.swiper-container', {
spaceBetween: 30,
centeredSlides: true,
virtualTranslate: true,
loop: true,
autoplay: {
delay: 2500,
disableOnInteraction: false,
waitForTransition: false,
},
pagination: {
el: '.swiper-pagination',
type: 'fraction',
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
}
});
Slideshow working correctly (pagination counting correctly and slide classes updating).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Had the same issue when using virtualTranslate and loop both set to true. Then the navigation next/prev will not working. Only the swipe works.
Same problem here.
I found out that reseting swiper internal animating flag on slideChangeTransitionStart event make it works again.
var swiper = new Swiper('.swiper-container', {
…
});
swiper.on('slideChangeTransitionStart', function() {
setTimeout(function() {
swiper.animating = false;
}, 0);
});
@Djules this inside setTimeout refers to window instead of the swiper instance. I replaced with swiper.animating = false and it works.
@godness84 whoops my bad! I edited my previous comment. Glad it works!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed due to inactivity. If this issue is still actual, please, create the new one.
@nolimits4web This issue still persists in Swiper 6. Is it possible to re-open this issue?
@herrschuessler did you try the following workaround?
I found out that reseting swiper internal
animatingflag onslideChangeTransitionStartevent make it works again.var swiper = new Swiper('.swiper-container', { … }); swiper.on('slideChangeTransitionStart', function() { setTimeout(function() { swiper.animating = false; }, 0); });
@vltansky Yes, and I can confirm that it works!
Most helpful comment
I found out that reseting swiper internal
animatingflag onslideChangeTransitionStartevent make it works again.