Where is the Vibration API hiding in Chrome 23?

萝らか妹 提交于 2019-12-10 12:57:28

问题


According to a post on Peter Beverloo's blog, "The webkit prefix has been dropped from the Vibration API implementation as it reached Candidate Recommendation."

In Firefox, the Vibration API can be found at navigator.vibrate (per the spec), not so in Chrome 23 - with or without the webkit prefix. I've tried enabling experimental javascript in chrome://flags but to no effect.

Despite playing around in devtools and plenty of searching on the net, I'm still unable to locate this API. Where is it hiding?


回答1:


The blog was just indicating that the API has been unprefixed in WebKit. We don't have it in Chrome for Desktop and we don't have it in Chrome for Android as of version 25



来源:https://stackoverflow.com/questions/13633561/where-is-the-vibration-api-hiding-in-chrome-23

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!