简体   繁体   English

在 safari ios 上禁用下拉退出全屏模式

[英]Disable pull down to exit full screen mode on safari ios

My team is developing a web application which has a full screen option in some sections.我的团队正在开发 web 应用程序,该应用程序在某些部分具有全屏选项。 On Chrome, FireFox and Edge, the full screen option works fine.在 Chrome、FireFox 和 Edge 上,全屏选项工作正常。 However, on safari ios, when entering full screen mode, if users touch and pull down the screen, it will exit full screen mode.但是,在safari ios上,进入全屏模式时,如果用户触摸并下拉屏幕,则会退出全屏模式。 Is there anyway to disable this action?无论如何要禁用此操作?

The only way I know to solve this is to have your users add the site to the home screen.我知道解决此问题的唯一方法是让您的用户将站点添加到主屏幕。

I think you can also detect if it's been opened via the home screen.我认为您还可以检测它是否已通过主屏幕打开。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM