mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
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:
parent
a2bfc27492
commit
4523bb241b
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue