Undoing one of my earilier changes to remove a jump-to-top that commonly happened at the start of transitions,

This commit is contained in:
scottjehl 2012-01-27 20:39:07 +07:00
parent a2bfc27492
commit 4523bb241b

View file

@ -40,7 +40,7 @@ function outInTransitionHandler( name, reverse, $to, $from ) {
$.mobile.focusPage( $to );
// Jump to top or prev scroll, sometimes on iOS the page has not rendered yet.
$to.height( $to.height() );
$to.height( screenHeight + toScroll );
$.mobile.silentScroll( toScroll );
@ -67,7 +67,7 @@ function outInTransitionHandler( name, reverse, $to, $from ) {
if ( $from && !none ) {
$from
.animationComplete( doneOut )
.height( $from.height() )
.height( screenHeight + $(window ).scrollTop() )
.addClass( name + " out" + reverseClass );
}
else {