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

Commit 411d79e

Browse files
committed
Init: stop inital scroll when not hiding url
1 parent a2364f3 commit 411d79e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/jquery.mobile.init.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ define([
146146
$(function() {
147147
//Run inlineSVG support test
148148
$.support.inlineSVG();
149-
150-
window.scrollTo( 0, 1 );
149+
if( $.mobile.hideUrlBar ){
150+
window.scrollTo( 0, 1 );
151+
}
151152

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

0 commit comments

Comments
 (0)