Re: [vibra] Vibration API -- the first stab

On 1.11.2011, at 16.34, ext JOSE MANUEL CANTERA FONSECA wrote:

> vibrate(0)  means no vibration.
> 
> In addition probably you are going to need something to indicate what
> vibration you want to cancel as there can be more than one pending
> vibration request

There's no concept of pending vibration request in the current draft. In other words, only one vibration operation is active at a time and any subsequent vibrate() invocation will cancel the pre-existing operation, if any. See the tests 3 and 4a:

  https://bug679966.bugzilla.mozilla.org/attachment.cgi?id=567875

Do you have a use case in mind for pending vibration requests?

-Anssi

Received on Thursday, 3 November 2011 03:59:53 UTC