Permalink
Browse files

Transitions: check to see if there is a stored scroll position when u…

…rl bar hiding is disabled
  • Loading branch information...
arschmitz committed Jul 24, 2013
1 parent 2c10db3 commit 61d2828472d66ae9bc1273a5663919d12fbfc3f7
Showing with 1 addition and 2 deletions.
  1. +1 −2 js/transitions/transition.js
@@ -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 );
}

0 comments on commit 61d2828

Please sign in to comment.