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
After stopping autoplay, waiting for a number of seconds longer than the delay time, then starting autoplay, the timeLeft and percentage values in the autoplayTimeLeft event are negative.
Expected Behavior
The timeLeft and percentage should accurately reflect the time left before transition to the next slide and percentage of that time related to autoplay delay.
Actual Behavior
Using the reproduction link, run swiper.autoplay.stop(), wait for 5-10 seconds, then run swiper.autoplay.start().
The autoplayTimeLeft event will get negative numbers for timeLeft and percentage, and the progress countdown UI element will reflect this.
Check that this is really a bug
Reproduction link
https://codesandbox.io/s/c2px7m
Bug description
After stopping autoplay, waiting for a number of seconds longer than the delay time, then starting autoplay, the timeLeft and percentage values in the autoplayTimeLeft event are negative.
Expected Behavior
The timeLeft and percentage should accurately reflect the time left before transition to the next slide and percentage of that time related to autoplay delay.
Actual Behavior
Using the reproduction link, run swiper.autoplay.stop(), wait for 5-10 seconds, then run swiper.autoplay.start().
The autoplayTimeLeft event will get negative numbers for timeLeft and percentage, and the progress countdown UI element will reflect this.
Swiper version
10.3.1
Platform/Target and Browser Versions
Windows Chrome 117.0.5938.132
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: