Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes flickering transitions withing a phonegap container

  • Loading branch information...
commit ff125b65e682ecd33888a6db1221ac441d258994 1 parent a1f3394
@alexksso alexksso authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 js/jquery.mobile.transition.js
View
6 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 );
}
Please sign in to comment.
Something went wrong with that request. Please try again.