Skip to content

Commit

Permalink
Merge pull request johnpolacek#6 from DieBuche/master
Browse files Browse the repository at this point in the history
Offset miscalculated
  • Loading branch information
johnpolacek committed Jan 19, 2012
2 parents ad87dc5 + bacc99d commit d2e6be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.scrollorama.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
var block = scrollorama.settings.blocks.eq(i);
blocks.push({
block: block,
top: block.offset().top,
top: block.offset().top - parseInt(block.css('margin-top'), 10),
pin: 0,
animations:[]
});
Expand Down

0 comments on commit d2e6be2

Please sign in to comment.