W3C home > Mailing lists > Public > public-device-apis@w3.org > May 2012

[sensors] the near/far event names

From: Marcos Caceres <marcosscaceres@gmail.com>
Date: Fri, 11 May 2012 18:26:54 +0100
To: "public-device-apis@w3.org" <public-device-apis@w3.org>
Message-ID: <35A7A63961FF4273A1BA0EC0BAC3511A@gmail.com>
What about going with what Robin suggested:  

window.addEventListener("proximity", function(e){});

And the Event:

e.min ...
e.max ...
e.value ...
e.proximity = "far" || "near" ? 
Received on Friday, 11 May 2012 17:27:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 11 May 2012 17:27:26 GMT