Skip to content

centeredSlides with centeredSlidesBounds don't work correct with slidesPerView: 'auto' #7697

@AzA-95

Description

@AzA-95

Check that this is really a bug

  • I confirm

Reproduction link

https://jsfiddle.net/pbL17azg/

Bug description

When width of the .swiper bigger then of the width of slides, slider works incorect and allow slide(although it shouldn't slide).
Try run demo and resize window to breakpoin to 800px or bigger and click to (Slide arrow !Sometimes click in the slide arrow works only in doubly click!) to reproduce bug
Added video of bug for visuality
https://github.com/user-attachments/assets/51f3ebe8-0919-4952-a98e-1378e4167316

PR here #7696

Expected Behavior

it shouldn't slide if width of the .swiper bigger then of the width of slides

Actual Behavior

it slides

Swiper version

11.1.10

Platform/Target and Browser Versions

Linux Mint 21.2 / Browser Chrome 124.0.6367.78

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions