Palm webOS 上浏览器中的方向更改事件

发布于 2024-08-31 12:36:30 字数 193 浏览 2 评论 0原文

我正在开发一个网络应用程序,我试图在用户旋转屏幕时进行捕获。从根本上来说,我想知道用户是否以纵向模式或横向模式浏览。当屏幕方向改变时,iPhone/iPad 和 Android 浏览器会发送调整大小事件。

不幸的是,webOS 中的浏览器似乎没有发送该通知。关于如何在浏览器中检测 Palm webOS 方向的任何变化有什么建议吗?

谢谢。

I'm working on a web application where I'm trying to capture when the user rotates the screen. Fundamentally, I want to know if the user is browsing in portrait mode or landscape mode. The iPhone/iPad and Android browsers send a resize event when the screen orientation changes.

Unfortunately, the browser in webOS doesn't seem to send that notification. Any advice on how to detect in the browser any changes in orientation on Palm webOS?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你怎么敢 2024-09-07 12:36:30

显然,该事件标记为错误不存在并且“应该在即将发布的版本中修复”。您可以将 window.innerHeight 和 window.innerWidth 作为解决方法。

Apparently it's marked as a bug that the event isn't present and "should be fixed in an upcoming release". You could possibly watch window.innerHeight and window.innerWidth as a workaround.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文