mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-10 23:53:10 +00:00
scroll to top before page transition as well. That way the loading screen will show up without having to position it.
This commit is contained in:
parent
b5157e4efc
commit
3ad6166991
1 changed files with 1 additions and 0 deletions
|
|
@ -156,6 +156,7 @@
|
|||
// transition between pages - based on transitions from jQtouch
|
||||
function changePage( from, to, transition, back ) {
|
||||
jQuery( document.activeElement ).blur();
|
||||
window.scrollTo( 0, 0 );
|
||||
|
||||
//trigger before show/hide events
|
||||
from.trigger("beforepagehide", {nextPage: to});
|
||||
|
|
|
|||
Loading…
Reference in a new issue