-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: