react-id-swiper icon indicating copy to clipboard operation
react-id-swiper copied to clipboard

Lazy loading inconsistent when freeMode is true

Open bradbarrow opened this issue 7 years ago • 1 comments

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.

bradbarrow avatar Feb 18 '19 02:02 bradbarrow

interesting could this also explain #394

theskillwithin avatar May 23 '20 23:05 theskillwithin