Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Init: stop inital scroll when not hiding url
Browse files Browse the repository at this point in the history
  • Loading branch information
arschmitz committed Jul 24, 2013
1 parent a2364f3 commit 411d79e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/jquery.mobile.init.js
Expand Up @@ -146,8 +146,9 @@ define([
$(function() {
//Run inlineSVG support test
$.support.inlineSVG();

window.scrollTo( 0, 1 );
if( $.mobile.hideUrlBar ){
window.scrollTo( 0, 1 );
}

// if defaultHomeScroll hasn't been set yet, see if scrollTop is 1
// it should be 1 in most browsers, but android treats 1 as 0 (for hiding addr bar)
Expand Down

0 comments on commit 411d79e

Please sign in to comment.