Quote:
Originally Posted by msu2k
Just installed this on my site and it looks great! One problem I'm encountering on my iPhone, and this happens when I visit your site as well, the jump to last post button isn't working correctly. It just takes me to the last page, but not down to an anchor for the last post itself. Any idea why this is happening?
In fact, the same thing is happening on Elforro's site with his style. It will jump me to the last page of a thread, but not down to the last post. If I test it on Firefox or IE it will work just fine and go down to the anchor, but on the iPhone it's not jumping down to the anchor like it should.
UPDATE: Ok, I figured out why this was happening. This javascript in headinclude causes iPhones to jump back up to the top of the screen. Commenting that out makes the anchors work correctly.
Code:
<script type="application/x-javascript">
if (!!navigator.userAgent.match(/.*Mobile.*Safari/))
{
addEventListener("load", function()
{
setTimeout(hideURLbar, 0);
}, false);
}
function hideURLbar()
{
window.scrollTo(0, 1);
}
</script>
|
Are you sure that's the issue? Deleting that code didn't solve the problem for me.
Edit: Figured it out. It's in the postbit template. I added the
a name back in and it works now.