So I'm working on a web application that has a fixed bar on the bottom. In order for this to behave like a truly fixed bottom bar, in mobile Safari it is necessary to use position: fixed
on the content above it (with bottom
set to the height of the bottom bar) and also set -webkit-overflow-scrolling: touch
on this content in order for it to scroll as if it weren't fixed.
The problem is that if Safari's bottom bar is hidden and then you try to click on our app's bottom bar, this will make Safari's own bottom bar appear, but without triggering a resize event which will effectively hide our app's bottom bar even though it has position: fixed
. Safari's bottom bar normally goes away once you scroll the content, except that our content has -webkit-overflow-scrolling: touch;
set, so it apparently doesn't trigger UI hiding.
I'm looking for a way to either prevent Safari's bottom bar from popping up when clicking at the bottom of the page, or being able to hide the UI when scrolling, even if the content that is scrolled has -webkit-overflow-scrolling: touch;
set. Thanks.