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

If set loop: true and centeredSlidesBounds: true, fraction pagination active slide shows NaN on screen resize #6967

Closed
5 of 6 tasks
sleepmanserg opened this issue Aug 23, 2023 · 0 comments

Comments

@sleepmanserg
Copy link

sleepmanserg commented Aug 23, 2023

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/s/jovial-morning-wfl6l9?file=/index.html

Bug description

If set loop: true on mobile only from 320 to 768 breakpoint and centeredSlidesBounds: true by default, when you resize screen from 768 to smaller, fraction pagination active slide shows NaN and Navigation stops working.
If you will refresh page everything is working as expected.

Expected Behavior

Show active slide in fraction pagination on screen resize as it works on page load.

Actual Behavior

Active slide shows NaN in fraction pagination on screen resize.

Swiper version

10.0.4

Platform/Target and Browser Versions

macOS, Firefox 116.0.3, Chrome 114.0.5735.198

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