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

Commit 61d2828

Browse files
committed
Transitions: check to see if there is a stored scroll position when url bar hiding is disabled
1 parent 2c10db3 commit 61d2828

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

js/transitions/transition.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ define( [ "jquery",
7979
// By using scrollTo instead of silentScroll, we can keep things better in order
8080
// Just to be precautios, disable scrollstart listening like silentScroll would
8181
$.event.special.scrollstart.enabled = false;
82-
83-
if( $.mobile.hideUrlBar ) {
82+
if( $.mobile.hideUrlBar || this.toScroll !== $.mobile.defaultHomeScroll ) {
8483
window.scrollTo( 0, this.toScroll );
8584
}
8685

0 commit comments

Comments
 (0)