Permalink
Browse files

This works around an issue where iOS5 and maybe others fail to scroll…

… to the desired location during a transition that uses 3D transforms.
  • Loading branch information...
scottjehl
scottjehl committed Mar 29, 2012
1 parent e7f9a41 commit 7a05b385b4b9886581c0d62ca9df94a7a9f5fea2
Showing with 7 additions and 1 deletion.
  1. +7 −1 js/jquery.mobile.transition.js
@@ -76,7 +76,13 @@ var createHandler = function( sequential ){
.removeClass( "out in reverse " + name )
.height( "" );
toggleViewportClass();
toggleViewportClass();
// In some browsers (iOS5), 3D transitions block the ability to scroll to the desired location during transition
// This ensures we jump to that spot after the fact, if we aren't there already.
if( $( window ).scrollTop() !== toScroll ){
$.mobile.silentScroll( toScroll );
}
deferred.resolve( name, reverse, $to, $from, true );
};

0 comments on commit 7a05b38

Please sign in to comment.