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...
1 parent 1ec80bd commit 2d2e6d7741f0e4d6dff43ec4803d84b738f373a2 @jblas jblas committed Apr 21, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 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

sebabal commented on 2d2e6d7 May 4, 2011

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.