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

Use container width instead of window width for lazy-load #23

Closed
rmunch opened this issue Jun 4, 2014 · 2 comments
Closed

Use container width instead of window width for lazy-load #23

rmunch opened this issue Jun 4, 2014 · 2 comments

Comments

@rmunch
Copy link

rmunch commented Jun 4, 2014

When you use the container option when using a scrolling container, images are tested against the window width to determine whether they are in the viewport instead of against the container's dimensions.

In my case, I have a scrolling container that only fills up 2/3 of the screen, so there are a few images that aren't visible that still get lazy-loaded. Ideally they would only load as you scroll the container.

Thanks for this well-done lazy-loader!

@dinbror
Copy link
Owner

dinbror commented Oct 15, 2016

Fixed in 1.8.0

@dinbror dinbror closed this as completed Oct 15, 2016
@dinbror
Copy link
Owner

dinbror commented Oct 15, 2016

Better late than never ;)

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

2 participants