Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy loading in free mode may not work #4274

Closed
bcmk opened this issue Feb 27, 2021 · 0 comments
Closed

Lazy loading in free mode may not work #4274

bcmk opened this issue Feb 27, 2021 · 0 comments

Comments

@bcmk
Copy link

bcmk commented Feb 27, 2021

  • Swiper Version: 5d15292
  • Platform/Target and Browser Versions: Ubuntu Linux 20.04 / Chrome 88.0.4324.182

What You Did

If both lazy loading and free mode are enabled, lazy loading may not work in some circumstances.
Basically if you move to not loaded yet slides with a mouse and completely stop moving before releasing, slides are not loaded.

I recorded a video showing it: https://youtu.be/zvfhp20sccA.
At first I'm opening a tab with an example built using current master branch of Swiper.
Then I'm opening a tab with the version patched with this proposed change.

Here are examples:
The version from master branch: https://bcmk.github.io/swiper/master.html
Fixed version: https://bcmk.github.io/swiper/fixed.html

Complete examples: https://github.com/bcmk/swiper/tree/lazy-free-fix-example
Look for master.html built from current master (5d15292) and fixed.html built from proposed patch (I'm sending the pull request as well)

Expected Behavior

Talking about provided video, slides number 9 and 10 should be loaded

Actual Behavior

Slides number 9 and 10 were not loaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant