diff --git a/.gitignore b/.gitignore index e43b0f9..dcc27cb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .DS_Store +web diff --git a/jquery.appear.js b/jquery.appear.js index ff0b764..e968d98 100644 --- a/jquery.appear.js +++ b/jquery.appear.js @@ -52,9 +52,9 @@ var top = offset.top; if (top + $element.height() >= window_top && - top - ($element.data('appear-top-offset') || 0) <= window_top + $window.height() && + top - ($element.data('appear-top-offset') || 0) <= window_top + screen.height && left + $element.width() >= window_left && - left - ($element.data('appear-left-offset') || 0) <= window_left + $window.width()) { + left - ($element.data('appear-left-offset') || 0) <= window_left + screen.width) { return true; } else { return false;