Skip to content

Commit

Permalink
Merge pull request #28 from sullinger/master
Browse files Browse the repository at this point in the history
fix "element in viewport" calculation
  • Loading branch information
callmecavs committed May 15, 2015
2 parents 7ef00d4 + 9ac778b commit 50c9447
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "layzr.js",
"version": "1.1.4",
"version": "1.2.2",
"description": "A small, fast, modern, and dependency-free library for lazy loading.",
"homepage": "http://callmecavs.github.io/layzr.js/",
"main": ["dist/layzr.js"],
Expand Down
2 changes: 1 addition & 1 deletion dist/layzr.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

// return if element in viewport
return elementBottom >= viewportTop - threshold
&& elementBottom <= viewportBottom + threshold
&& elementTop <= viewportBottom + threshold
&& !node.hasAttribute(this._optionsAttrHidden);
};

Expand Down
2 changes: 1 addition & 1 deletion dist/layzr.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "layzr.js",
"version": "1.2.1",
"version": "1.2.2",
"description": "A small, fast, modern, and dependency-free library for lazy loading.",
"homepage": "http://callmecavs.github.io/layzr.js/",
"main": "dist/layzr.js",
Expand Down

0 comments on commit 50c9447

Please sign in to comment.