Navigation Menu

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

Commit

Permalink
Transistion: prevent scrolling when not hiding the url bar
Browse files Browse the repository at this point in the history
  • Loading branch information
arschmitz committed Jul 24, 2013
1 parent 411d79e commit 2c10db3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/transitions/transition.js
Expand Up @@ -80,7 +80,9 @@ define( [ "jquery",
// Just to be precautios, disable scrollstart listening like silentScroll would
$.event.special.scrollstart.enabled = false;

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

// reenable scrollstart listening like silentScroll would
setTimeout( function() {
Expand Down

0 comments on commit 2c10db3

Please sign in to comment.