first of all: I’m new to this forum (as a member, not as a visitor) and I hope, you can help me with this problem
(When this is the wrong subforum, please let me know)
I try to develop a standalone webapp for the iphone.
My problem is, that I want/need to have a fixed viewport. Or in other words, I don’t want the internal Browser (safari) to scroll beneath the bottom of the page.
For a better understanding, here is the behaviour, I don’t want:
Any suggestions or hints, how I could avoid that? Is there maybe a meta-value, I could use? I checked them, but maybe I missed something.
Another possibility could be, to check the touchmove-event and stop it, when the border has reached. Just an idea I haven’t checked yet.
The width and scalability (can I say that in english … scalability?) are set as mentioned on the apple-ressource you linked to.
These settings don’t touch the scrolling-functionality.
Maybe I posted a wrong example (the goolge screenshot above should only show the behaviour i ment).
I already have a standalone web app with a fixed body-height (= viewport-height) and I don’t want the safari to scroll beneath the bottom of it (and afterwards bounce back).
The first CSS-Part is already in my project (with overflow:hidden).
The second part (body positioned fixed) has no effect
I guess, that the safari-engine scrolls the viewport beyond bottom (for usability) and not the page itself. Therefore, CSS-Attributes may not have any effect on this issue (I guess).
It might not be possible to do it. Perhaps it’s a usability issue - users are allowed to scroll beyond the bottom of the page so they can more easily tap any links at the bottom.
This only works on iphone-safari, as there must be the “touchmove” event. I don’t know, if this is some kind of standard for mobile devices and could work for other devices/os too?