I'm working on a web app. Most of the app has scrolling disabled, however one fullscreen panel needs to be scrollable.
The problem:
If the user is in the part of the app that's scrollable, and scrolls down, the address bar disappears.
If, after the address bar disappears, the user decides to exit that panel by clicking an X on the fixed-position menu bar, then the address bar never gets triggered (because scrolling up never happens) and so the user is stuck in a scroll-disabled address-bar-less state.
My question:
Is it possible to force trigger the address bar to show in Google Chrome?
Links!
JSBin output
JSBin code
btw
Simply setting $(window).scrollTop(0) doesn't do it.
Emulating using dev tools doesn't work. You need to open it in a mobile device, in the chrome app.
Thanks!
Example below:
No scrolling allowed, address bar showing
)
Scrolling allowed, address bar showing
User scrolled, address bar hiding
Go back to scrolling-disabled div, address bar is hidden
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…