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

Cards issue when only 2 cards #7849

Open
5 of 6 tasks
romainboyer opened this issue Jan 10, 2025 · 0 comments
Open
5 of 6 tasks

Cards issue when only 2 cards #7849

romainboyer opened this issue Jan 10, 2025 · 0 comments

Comments

@romainboyer
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://www.mesloisirs.fr

Bug description

When you have only 2 cards, let's say cards A on top and card B behind.

clicking on the top card A make the 2 left cards switch, and so you are actually grabbing the card B.

This problem doesn't exist with 3+ cards.

You can reproduce in mobile mode (even with dev tools) on my reproduction link (home page)

My Configuration is the following with Swipper latest version:

        const swiper = new Swiper('.swiper', {
            effect: 'cards',
            grabCursor: true,
            centeredSlides: true,
            slidesPerView: 'auto',
            loop: true,
            pagination: {
                el: '.swiper-pagination',
                clickable: true,
            },
        });

Thanks for taking this into consideration.

Expected Behavior

No response

Actual Behavior

No response

Swiper version

Swiper 11.2.0

Platform/Target and Browser Versions

Chrome / Mobile version

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