Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Duh, it should be PLUS 100
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Sinchok committed Oct 22, 2014
1 parent daa4122 commit 1553ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion betty/cropper/templates/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
// check if image is in viewport for lazy loading, and
// preload images if they're within 100px of being shown.
var innerHeight = w.innerHeight || w.document.documentElement.clientHeight,
visible = el.getBoundingClientRect().top <= (innerHeight - 100);
visible = el.getBoundingClientRect().top <= (innerHeight + 100);
// this is a div to picturefill, start working on it if it hasn't been rendered yet
if (el.getAttribute("data-image-id") !== null
Expand Down

0 comments on commit 1553ed7

Please sign in to comment.