swiper icon indicating copy to clipboard operation
swiper copied to clipboard

lazyoad skips image when using fractional slidePerView and watchSlidesProgress

Open dijkermans opened this issue 2 years ago • 0 comments

Check that this is really a bug

  • [X] I confirm

Reproduction link

https://codepen.io/dijkermans/pen/vYRzzLb

Bug description

Hi,

The slider skips a lazy load image in this case; in below example "image04.jpg" is not preloaded but e.g. image05 is preloaded:

https://snipboard.io/BlRwkW.jpg

looks like "watchSlidesProgress:true" is causing the issue but I need it because of the "right click on link resets slider"-bug: https://github.com/nolimits4web/swiper/issues/5814

Regards.

Expected Behavior

lazy images preloaded, respecting loadPrevNextAmount

Actual Behavior

image04 skipped from preloading which results in loading-flicker

Swiper version

8.3.2

Platform/Target and Browser Versions

win10 / chrome 104

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the docs.
  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • [X] 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

dijkermans avatar Aug 12 '22 10:08 dijkermans