Skip to content

Commit

Permalink
reverted ie8 pin fix
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpolacek committed May 8, 2012
1 parent 7d16ecf commit 3dc9b12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/jquery.scrollorama.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@
var currBlockIndex = 0, i;
for (i=0; i<blocks.length; i++) {
// check if block is in view
var offset = $(blocks[i].block).offset();
if (offset.top <= scrollTop - scrollorama.settings.offset) { currBlockIndex = i; }
if (blocks[i].top <= scrollTop - scrollorama.settings.offset) { currBlockIndex = i; }
}
return currBlockIndex;
}
Expand Down

0 comments on commit 3dc9b12

Please sign in to comment.