Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for issue 1461 - Tops of pages missing after dialog click in Safa…

…ri and iPhone.

- Delayed the setting of focus till *AFTER* the scroll position is restored.
  • Loading branch information...
commit 2d2e6d7741f0e4d6dff43ec4803d84b738f373a2 1 parent 1ec80bd
@jblas jblas authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  js/
3  js/
@@ -458,8 +458,7 @@
//jump to top or prev scroll, sometimes on iOS the page has not rendered yet. I could only get by this with a setTimeout, but would like to avoid that.
$.mobile.silentScroll( to.jqmData( "lastScroll" ) );
- reFocus( to );
+ $(document).one("silentscroll", function(){ reFocus( to ); });
//trigger show/hide events
if( from ){

3 comments on commit 2d2e6d7


I tried this fix but did not work for me, either Safari or iPod


this actually fixes the problem. Just make sure you have to use the nightbuild of jquerymobile (not the static alpha 4 version)


Yes you are totally right, I was applying the patch to the current a4.1 version. Sorry for all the noise that I have introduced.

Please sign in to comment.
Something went wrong with that request. Please try again.