Hiding address bar without hiding the smart app banner on iOS 6

前端 未结 1 1104
不知归路
不知归路 2021-01-06 02:47

I\'m currently hiding the address bar on iOS using the standard scrollTo technique (something like this). I am also using an iOS 6 smart app banner, but when using the abov

相关标签:
1条回答
  • 2021-01-06 03:18

    Long story short, the clever folks at HTML5 Boilerplate have already solved the problem in their mobile version.

    Check out MBP.hideUrlBarOnLoad in helper.js, which hides the address bar and doesn't hide the smart app banner. It appears that the key difference is probably MBP.getScrollTop, which gets a more intelligent scrolling point than simply scrolling to 1.

    0 讨论(0)
提交回复
热议问题