Skip to content

Commit

Permalink
removing mobile hiding of address bar because it causes post-load jump
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Gamache committed Dec 28, 2011
1 parent ae67dcd commit 234ec95
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions wp-content/themes/davegamache/js/app.js
Expand Up @@ -11,38 +11,6 @@ if( navigator.userAgent.match(/Android/i) ||
isMobile = true;
}

// Scrolls iPhone and Android out of view after load
// if(isMobile) {
// (function( win ){
// var doc = win.document;

// // If there's a hash, or addEventListener is undefined, stop here
// if( !location.hash && win.addEventListener ){
// //scroll to 1
// window.scrollTo( 0, 1 );
// var scrollTop = 1,
// getScrollTop = function(){
// return win.pageYOffset || doc.compatMode === "CSS1Compat" && doc.documentElement.scrollTop || doc.body.scrollTop || 0;
// },
// //reset to 0 on bodyready, if needed
// bodycheck = setInterval(function(){
// if( doc.body ){
// clearInterval( bodycheck );
// scrollTop = getScrollTop();
// win.scrollTo( 0, scrollTop === 1 ? 0 : 1 );
// }
// }, 15 );
// win.addEventListener( "load", function(){
// setTimeout(function(){
// //reset to hide addr bar at onload
// win.scrollTo( 0, scrollTop === 1 ? 0 : 1 );
// }, 0);
// } );
// }
// })( this );
// }


$(document).ready(function() {

// Global vars
Expand Down

0 comments on commit 234ec95

Please sign in to comment.