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

swiper onSlideChange trigger repeatedly after change browser tab #5907

Closed
5 of 6 tasks
xiaosu12138 opened this issue Jul 26, 2022 · 0 comments
Closed
5 of 6 tasks

swiper onSlideChange trigger repeatedly after change browser tab #5907

xiaosu12138 opened this issue Jul 26, 2022 · 0 comments
Labels

Comments

@xiaosu12138
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/s/swiper-e1no6u?file=/src/App.tsx

Bug description

when change browser tab with style display: none, swiper onSlideChange trigger repeatedly

iShot_2022-07-26_11.14.58.mp4

Expected Behavior

onSlideChange do not trigger OR correct trigger

Actual Behavior

onSlideChange trigger three times

Swiper version

7.2.0

Platform/Target and Browser Versions

macOS Chrome 103.0.5060.114

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
Projects
None yet
Development

No branches or pull requests

1 participant