Hi,

You can refer to the link as below. Which is used to test orientation sensor on 
gaia app.
https://github.com/mozilla-b2g/gaia/blob/master/test_apps/test-sensors/js/physical-events.js#L23

Sincerely yours.



----- Original Message -----
From: "A. Crespo" <[email protected]>
To: "Dev B2G List" <[email protected]>
Sent: 2013年5月26日 星期日 22:43:12
Subject: [b2g] Orientation Webapi.

Hi there,

Could you help me with this easy example about how to use the Orientation
WebApi on FirefoxOS?
http://pastebin.com/kvUypMhL

What am I doing wrong? The event doesn't seem to be triggered when the
orientation is changed. I haven even tried:
screen.addEventListener("orientationchange", show, false);
But I was out of luck.

Regards.
<http://pastebin.com/kvUypMhL>
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to