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

Commit

Permalink
Transitions: check to see if there is a stored scroll position when u…
Browse files Browse the repository at this point in the history
…rl bar hiding is disabled
  • Loading branch information
arschmitz committed Jul 24, 2013
1 parent 2c10db3 commit 61d2828
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/transitions/transition.js
Expand Up @@ -79,8 +79,7 @@ define( [ "jquery",
// By using scrollTo instead of silentScroll, we can keep things better in order
// Just to be precautios, disable scrollstart listening like silentScroll would
$.event.special.scrollstart.enabled = false;

if( $.mobile.hideUrlBar ) {
if( $.mobile.hideUrlBar || this.toScroll !== $.mobile.defaultHomeScroll ) {
window.scrollTo( 0, this.toScroll );
}

Expand Down

0 comments on commit 61d2828

Please sign in to comment.