Skip to content
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

Stop autoplay, regression in 9 version #7517

Open
5 of 6 tasks
alkorlos opened this issue May 3, 2024 · 0 comments
Open
5 of 6 tasks

Stop autoplay, regression in 9 version #7517

alkorlos opened this issue May 3, 2024 · 0 comments

Comments

@alkorlos
Copy link

alkorlos commented May 3, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant