Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 7a05b385b4b9886581c0d62ca9df94a7a9f5fea2 1 parent e7f9a41
scottjehl authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 js/jquery.mobile.transition.js
View
8 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 );
};
Please sign in to comment.
Something went wrong with that request. Please try again.