From 2c10db34eb95049f5db185cad0b3e13e0119c056 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 24 Jul 2013 08:43:52 -0400 Subject: [PATCH] Transistion: prevent scrolling when not hiding the url bar --- js/transitions/transition.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/transitions/transition.js b/js/transitions/transition.js index 318987039db..df49edc80ab 100644 --- a/js/transitions/transition.js +++ b/js/transitions/transition.js @@ -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() {