W3C home > Mailing lists > Public > public-device-apis@w3.org > April 2013

Re: Vibration: throwing and pause

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 16 Apr 2013 09:57:43 +0100
Message-ID: <CADnb78i_83KXQwP8PT0MtnUjabgMg1L9re04JzeNGGk7z+p2uQ@mail.gmail.com>
To: Justin Lebar <justin.lebar@gmail.com>
Cc: "Kostiainen, Anssi" <anssi.kostiainen@intel.com>, "public-device-apis@w3.org" <public-device-apis@w3.org>
On Tue, Apr 16, 2013 at 9:14 AM, Justin Lebar <justin.lebar@gmail.com> wrote:
> I don't think we want to return false when the pattern is 0, the empty
> list, or if the device doesn't support vibration.  At the very least,
> this exposes to pages whether the device supports vibration, which I
> thought was something we wanted to avoid.  But also, vibrate([])
> "succeeds" if it gets to step (9), so it should return true, I think.

It seems better to expose that via the API than have developers rely
on UA-sniffing.

Received on Tuesday, 16 April 2013 08:58:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:32:53 UTC