Permalink
Browse files

fixes flickering transitions withing a phonegap container

  • Loading branch information...
1 parent a1f3394 commit ff125b65e682ecd33888a6db1221ac441d258994 @alexksso alexksso committed May 26, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 js/jquery.mobile.transition.js
@@ -74,6 +74,9 @@ var createHandler = function( sequential ){
startIn = function(){
+ //prevent flickering in phonegap container
+ $to.css("z-index", -10);
+
$to.addClass( $.mobile.activePageClass + toPreClass );
// Send focus to page as it is now display: block
@@ -84,6 +87,9 @@ var createHandler = function( sequential ){
scrollPage();
+ //restores visibility of the new page
+ $to.css("z-index", "");
+
if( !none ){
$to.animationComplete( doneIn );
}

0 comments on commit ff125b6

Please sign in to comment.