kidjp85 / react-id-swiper

A library to use idangerous Swiper as a ReactJs component which allows Swiper's modules custom build
https://react-id-swiper.ashernguyen.site/
MIT License
1.49k stars 154 forks source link

Lazy loading inconsistent when freeMode is true #243

Open bradbarrow opened 5 years ago

bradbarrow commented 5 years ago

Overview

Lazy loading appears to be triggered when slides "settle" into position.

When freeMode is set to true, the slides don't consistently settle into a space - they can be left in any position.

The result is that, when freeMode is enabled:

This is particularly noticeable when you have more than 1 slide per view:

Reproduction

https://codesandbox.io/s/n9qzo21kkl

Try gently dragging slides into view and notice that they don't lazy load. Try swiping with a flick motion so that the slides are carried by momentum - notice that lazy loading is triggered.

theskillwithin commented 4 years ago

interesting could this also explain #394