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

Fix for scrolling fast to the bottom of the page #137

Open
Sempervivum opened this issue Apr 11, 2017 · 0 comments
Open

Fix for scrolling fast to the bottom of the page #137

Sempervivum opened this issue Apr 11, 2017 · 0 comments

Comments

@Sempervivum
Copy link

Sempervivum commented Apr 11, 2017

When using this script I noticed one disadvantage: When scrolling fast to the bottom of the page one scrolls over the images on the way down and initiates loading. Therefore loading of the final images being in the viewport after scrolling lasts long.
There is an easy fix for this:
//$w.on("scroll.unveil resize.unveil lookup.unveil", unveil); var scrollHandle = null; $w.on("scroll.unveil resize.unveil lookup.unveil", function () { if (scrollHandle) clearTimeout(scrollHandle); scrollHandle = setTimeout(unveil, 200); });

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

No branches or pull requests

1 participant