Popup causing scroll to the top on iPhone with multipage

Popup causing scroll to the top on iPhone with multipage

After a lot of debugging and testing this is what I found.

If I have a multipage layout and if the url has "#PageName" in it, the action of closing a popup will cause the page to scroll to the top.

This does not happen when I test it on any browser on my machine, but it happens every time on an iPhone.

Has anybody else experienced this or know of a work around?

Thanks