Permalink
Browse files

Init: stop inital scroll when not hiding url

  • Loading branch information...
arschmitz committed Jul 24, 2013
1 parent a2364f3 commit 411d79e4631fed142252d00543f9c9c60532b046
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/jquery.mobile.init.js
View
@@ -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)

0 comments on commit 411d79e

Please sign in to comment.