Skip to content

Commit

Permalink
Content test tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Dec 6, 2015
1 parent ce4ca93 commit 048915e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/html/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ <h1 class="title">Title</h1>
var headerHeight = header.offsetHeight;

$element.bind('scroll', function(e) {
if(e.detail.scrollTop > starty) {
if(e.detail && e.detail.scrollTop > starty) {
// Start shrinking
shrinkAmt = headerHeight - Math.max(0, (starty + headerHeight) - e.detail.scrollTop);
shrink(header, shrinkAmt, headerHeight);
Expand Down

0 comments on commit 048915e

Please sign in to comment.