Hiding the address bar on iPhone/Android?
Open
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 642
- PR merge metrics
- No merged PRs in 30d
Description
Question: I'm having trouble hiding the address bar on mobiles. I'm using snap.js with a fixed header at the top. Everything works fine, but I can't hide the address bar with:
setTimeout(function(){
window.scrollTo(0, 1);
}, 0);
Is this because of snap.js? Is there a solution?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue on iPhone and Android with snap.js, a fixed header, and the shown window.scrollTo(0, 1) call. Inspect how the library handles scrolling and determine whether it affects the address bar; done means providing a confirmed explanation and solution or workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100