Permalink
Browse files

Merge pull request #4 from jelmuhr/master

Update for Android
  • Loading branch information...
2 parents 01fdb62 + 6c82f3d commit 2df14e8156eeaf998e5e08f4fecf8b4add976915 @tkenny committed Mar 21, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 index.html
View
@@ -21,7 +21,11 @@
top: mobileNavHeight + 'px !important'
});
// Scroll the window the height of mobileNavHeight
- $(window).scrollTop(mobileNavHeight);
+ $('html, body').stop().animate({
+ 'scrollTop': $('#site').offset().top
+ }, 1300, 'swing', function () {
+ window.location.hash = '#site';
+ });
}
// Check to see if the browser width is more than 480px wide
@@ -31,7 +35,7 @@
top: 0 + 'px'
});
// Scroll to the absolute top of the page
- $(window).scrollTop(0);
+ $(window).scrollTop(0); //no need for $.animate, on desktop browser it works just fine
}
}

0 comments on commit 2df14e8

Please sign in to comment.