react-id-swiper
react-id-swiper copied to clipboard
Lazy loading inconsistent when freeMode is true
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:
- Swiping from one slide to another will only trigger lazy loading if there is momentum in the swipe
- If you drag and drop the slides "gently" and don't allow them to be moved by momentum - lazy loading isn't triggered
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.
interesting could this also explain #394