Skip to content

SlidesPerView doesn't works well with slidesOffsetBefore/slidesOffsetAfter #7298

@Ploppy3

Description

@Ploppy3

Check that this is really a bug

  • I confirm

Reproduction link

#3679

Bug description

The carousel doesn't take into account the slidesOffsetBefore/slidesOffsetAfter when computing the size of the slides. Which results in an offset on the right side causing the last slide to be overflowing.

Expected Behavior

slidesOffsetBefore/slidesOffsetAfter should be taken into account when computing the size of the slides.

Actual Behavior

No response

Swiper version

11.0.6

Platform/Target and Browser Versions

linux chrome 121

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