gpt4 book ai didi

javascript - DeviceMotionEvent 目前在哪里实现?

转载 作者:行者123 更新时间:2023-11-30 13:34:37 26 4
gpt4 key购买 nike

DeviceOrientation specification包括设备运动事件。我见过它在 iPhone 上运行,听说它在 Chrome Mac 中受支持并在 Google Jules Vern Doodle 上使用.

是否有任何其他浏览器实现支持它?它在哪些版本中可用?

最佳答案

支持 DeviceOrientation 或 DeviceMotion 是浏览器及其运行硬件的组合。 Windows 上的 Firefox 和 Chrome 在 API 方面都支持 DeviceOrientation,但不一定适用于任何特定硬件。 Firefox 支持 DeviceMotion,但 Windows 上的 Chrome 不支持。

在运行“lenovo airbag protection”的 lenovo thinkpad 上,Firefox 10 将提供 DeviceMotion 事件,但奇怪的是不会提供 DeviceOrientation 事件。此外,它提供的值似乎是错误的(即不是以 m/s/s 为单位测量的)。 v虽然 Chrome 有 DeviceOrientation API,但我无法让它提供事件。 Windows 上的 Opera 11.61 似乎不支持任何一个 API。 Safari 5.1.2 for windows 似乎也不支持。

这里有一个关于使用 DeviceMotionEvent 的优秀页面 http://www.html5rocks.com/en/tutorials/device/orientation/其中包括一个使用 DeviceOrientation 的演示和另一个使用 DeviceMotion 的演示。

关于javascript - DeviceMotionEvent 目前在哪里实现?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5372083/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com