When 'previous/next slide' buttons are inside slider and if clicked on next slide button, the slider is moving to previous slide on tab/window switch #7406
Labels
t0ggles
Linked to the t0ggles task
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/swiper-css-mode-forked-4qc5hv
Bug description
When the buttons for moving the slides back and forth are inside the slider and the user clicks on the button for moving to next or previous slide, the slide is moving to next or previous slide accordingly. But after the slide is changed, if the user switches browser tab / browser window and coming back to the tab/window containing swiper, the slider is moving back to previous slide from where the button is clicked.
Steps to reproduce:
Expected Behavior
The slider should stay in the same slide instead of moving to previous slide on tab/window switch.
Actual Behavior
The slider is moving to previous slide instead of staying in the same slide on tab/window switch.
Swiper version
11.0.3
Platform/Target and Browser Versions
macOS chrome 122.0.6261.129
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: