Skip to content

loop + slidesOffsetBefore error #7956

@z624821876

Description

@z624821876

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/github/codesandbox/sandbox-templates/tree/main/vue-vite

Bug description

When loop is turned on and slidesOffsetBefore is set, a blank space is displayed before the first element in the initial state

Image

Expected Behavior

Normally, it should be a loop, and you should see the first element in the initial state

Image

Actual Behavior

Image

Swiper version

11.2.6

Platform/Target and Browser Versions

Chrome/134.0.0.0

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