Prevent Mobile Safari from presenting toolbar when bottom of viewport is tapped

前端 未结 5 1911
予麋鹿
予麋鹿 2021-02-02 06:05

We have a simple mobile app running in Mobile Safari (MS) on iOS. When the user scrolls down the page n pixels, a \"top\" button slides up from the bottom. The top butt

5条回答
  •  隐瞒了意图╮
    2021-02-02 06:48

    The simple solution here is to add about 50px padding-bottom on your bottom most div. Safari seems to think that you are trying to access the bottom navigation bar, unless you click well above the bottom area. With extra padding at bottom, the user will click much higher on the page (not always, but in general).

提交回复
热议问题