Skip to content

Commit 048915e

Browse files
committed
Content test tweak
1 parent ce4ca93 commit 048915e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: test/html/content.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ <h1 class="title">Title</h1>
9595
var headerHeight = header.offsetHeight;
9696

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

0 commit comments

Comments
 (0)