nolimits4web / swiper

Most modern mobile touch slider with hardware accelerated transitions

Home Page:https://swiperjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slidesOffsetAfter does not work with grid.rows > 1

danielkorte opened this issue · comments

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/swiper-grid-forked-kx7t38

Bug description

For my grid.rows = 2 swipers, the slidesOffsetAfter setting has no effect.

Issue #7298 may be related, but that may only apply to the slidesOffsetBefore setting because I have a non-grid swiper where slidesOffsetAfter works just fine. Not sure about the before setting.

Issue #5633 may be related too, but that issue is attempting to remove space at the end. It also uses slidesPerView: 'auto' unlike this issue which uses slidesPerView: 3.

Expected Behavior

slidesOffsetAfter should add space after the slides.

Actual Behavior

No space is added.

Swiper version

11.1.3

Platform/Target and Browser Versions

All modern browsers and OSs

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

t0ggles-create swiper

Task nolimits4web/SWIPER-134 was created

t0ggles task SWIPER-134