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

swiper thumbs work differently depending on direction swiped.

learyjk opened this issue · comments

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/swiper-thumbs-gallery-forked-fm58z8

Bug description

When advancing the slider, thumbs update the entire view. When going in reverse, thumbs update one-at-a-time.

Is this by design?

It seems to cause issues when using autoScrollOffset not equal to 0 as well.

in the example, with autoScrollOffset set to 1, the "active" thumbnail lags by 1 when the thumbnail view is shifted when advancing the slider forward. Works great in reverse though!

Expected Behavior

I would expect forward/reverse direction to influence thumbnail in the same manner. I think how the thumbnails respond when swiping in the reverse (not forward) direction makes sense for the default behavior.

Actual Behavior

see description.

Swiper version

11.1.3

Platform/Target and Browser Versions

Chrome 125

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