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

Commit 2c10db3

Browse files
committed
Transistion: prevent scrolling when not hiding the url bar
1 parent 411d79e commit 2c10db3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/transitions/transition.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ define( [ "jquery",
8080
// Just to be precautios, disable scrollstart listening like silentScroll would
8181
$.event.special.scrollstart.enabled = false;
8282

83-
window.scrollTo( 0, this.toScroll );
83+
if( $.mobile.hideUrlBar ) {
84+
window.scrollTo( 0, this.toScroll );
85+
}
8486

8587
// reenable scrollstart listening like silentScroll would
8688
setTimeout( function() {

0 commit comments

Comments
 (0)