nolimits4web / swiper

Most modern mobile touch slider with hardware accelerated transitions

Home Page:https://swiperjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stop autoplay, regression in 9 version

alkorlos opened this issue · comments

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/swiper-11-autoplay-stop-qshd53?file=%2Findex.html%3A156%2C1

Bug description

Create a creeping line, need autoplay infinite loop.

In the examples, there are two sliders. In the first one, the slides start from 100px, in the second one, they are 100px.

As seen in the example with version 11 and the video at a width of 1385px, the first one stops the automatic scrolling on the 3rd slide, the second one works correctly.
2024-05-03 16-39-10.webm

In the example with version 9, at a width of 1385px, the first one stops the automatic scrolling on the 5th slide, the second one on the 10th.

In version 8, everything works correctly.

The width of 1385px is not a mandatory condition, but at a larger/smaller width, the behavior may be different. All three examples I tested specifically at this width, but in version 11, the same issue exists at other resolutions as well.

Initially found this issue in version 11. As seen in the example, the slider fixed width slides works, while the slider with auto slides does not. At first, I thought the issue might be with the auto width, but in version 9, the bug behaves differently.

Expected Behavior

Not stop autoplay.

Actual Behavior

Stop autoplay

Swiper version

from 9.4.1, including 11.1.1

Platform/Target and Browser Versions

Windows Chrome 124

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR