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 slides suddenly disappear during swipe #6962

Closed
5 of 6 tasks
matinkg opened this issue Aug 22, 2023 · 2 comments
Closed
5 of 6 tasks

Swiper slides suddenly disappear during swipe #6962

matinkg opened this issue Aug 22, 2023 · 2 comments

Comments

@matinkg
Copy link

matinkg commented Aug 22, 2023

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/swiper-react-default-forked-jrk5wg?file=%2Fsrc%2FApp.jsx%3A13%2C1

Bug description

When swiping slides, slides become invisible suddenly. (Maybe if the swipe distance is a little long).

Steps to reproduce:

  1. Open the sandbox: https://codesandbox.io/p/sandbox/swiper-react-default-forked-jrk5wg?file=%2Fsrc%2FApp.jsx%3A13%2C1
  2. Swipe slider from right to left (it should be a little long swipe)
  3. Slides suddenly disappear

ezgif-1-e1017b43a9

Expected Behavior

Slides shouldn't become invisible during the swipe.

Actual Behavior

Slides become invisible suddenly.

Swiper version

10.2.0

Platform/Target and Browser Versions

Windows Chrome 116.0.5845.97 / Windows Firefox 116.0.3 (32-bit)

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
@nolimits4web
Copy link
Owner

You need to have more slides https://swiperjs.com/swiper-api#param-loop

Because of nature of how the loop mode works (it will rearrange slides), total number of slides must be >= slidesPerView * 2

@matinkg
Copy link
Author

matinkg commented Sep 9, 2023

You need to have more slides https://swiperjs.com/swiper-api#param-loop

Because of nature of how the loop mode works (it will rearrange slides), total number of slides must be >= slidesPerView * 2

It seems it's not working. I created many more slides but the problem is still exist without any changes.

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

2 participants