当轻触视口底部时,阻止Mobile Safari显示工具栏 [英] Prevent Mobile Safari from presenting toolbar when bottom of viewport is tapped

查看:85
本文介绍了当轻触视口底部时,阻止Mobile Safari显示工具栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在iOS上的Mobile Safari(MS)中运行了一个简单的移动应用程序。当用户向下滚动页面 n 像素时,顶部按钮从底部向上滑动。顶部按钮是固定位置。问题是,当您开始在MS中滚动时,隐藏了导航和工具栏UI。当您点击顶部按钮时,它会显示底部工具栏,然后需要第二次点击顶部按钮。有没有办法禁用默认的点击视口底部以显示工具栏的行为,所以我们的顶部按钮按预期工作(即跳转到页面顶部只需点击一下,而不是两个?

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 button is fixed position. Problem is, when you start scrolling in MS, the navigation and toolbar UI is hidden. When you tap the "top" button, it reveals the bottom toolbar and a second tap is required to tap the "top" button. Is there any way to disable the default "tap on the bottom part of the viewport to reveal the toolbar" behavior so our top button works as expected (i.e. jumps to the top of the page with one click, not two?

推荐答案

没有。您可以控制网页的内容,但不能控制Safari应用程序的行为。

No there is not. You can control the content of your webpage but not the behavior of the safari app.

这篇关于当轻触视口底部时,阻止Mobile Safari显示工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆