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:
scottjehl 2010-10-13 18:29:42 -04:00
parent b5157e4efc
commit 3ad6166991

View file

@ -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});