mozilla / r2d2b2g

Firefox OS Simulator is a test environment for Firefox OS. Use it to test your apps in a Firefox OS-like environment that looks and feels like a mobile phone.
https://addons.mozilla.org/en-US/firefox/addon/firefox-os-simulator/
Other
392 stars 139 forks source link

simulate vibration (window.navigator.vibrate) API #517

Open mykmelez opened 11 years ago

mykmelez commented 11 years ago

The Simulator should simulate the vibration API:

http://dev.w3.org/2009/dap/vibration/ https://developer.mozilla.org/en-US/docs/DOM/window.navigator.vibrate http://robnyman.github.com/vibration/

@codepo8 implemented a polyfill we might be able to reuse:

https://github.com/codepo8/mozVibrate-polyfill

nickdesaulniers commented 11 years ago

css animation of the screen shaking?

codepo8 commented 11 years ago

yes On 14 May 2013 01:00, "Nick Desaulniers" notifications@github.com wrote:

css animation of the screen shaking?

— Reply to this email directly or view it on GitHubhttps://github.com/mozilla/r2d2b2g/issues/517#issuecomment-17848996 .

codepo8 commented 11 years ago

I also added the support for vibrate() instead of mozVibrate. Strangely enough vibrate() is already a stub in Firefox now but does nothing. That messes with feature detection.

mounirlamouri commented 11 years ago

I also added the support for vibrate() instead of mozVibrate. Strangely enough vibrate() is already a stub in Firefox now but does nothing. That messes with feature detection.

Did you file a bug on this?