Skip to content

Commit

Permalink
Improvements of appear checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Perlover committed Jan 12, 2016
1 parent 355053a commit da43659
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions jquery.lazyload.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@
/* Nothing. */
} else if (!$.belowthefold(this, settings) &&
!$.rightoffold(this, settings)) {
if ( !$.abovethetop(this, {threshold : 0}) &&
!$.leftofbegin(this, {threshold : 0}) &&
!$.belowthefold(this, {threshold : 0}) &&
!$.rightoffold(this, {threshold : 0}) )
if ( $.inviewport(this, {threshold : 0}) )
{
$this.trigger("appear");
}
Expand Down

0 comments on commit da43659

Please sign in to comment.