W3C home > Mailing lists > Public > public-geolocation@w3.org > August 2017

[deviceorientation] devicemotion: rotationRate is not implemented according to specification

From: Jun Cai via GitHub <sysbot+gh@w3.org>
Date: Wed, 23 Aug 2017 18:31:12 +0000
To: public-geolocation@w3.org
Message-ID: <issues.opened-252375131-1503513065-sysbot+gh@w3.org>
juncaidf has just created a new issue for https://github.com/w3c/deviceorientation:

== devicemotion: rotationRate is not implemented according to specification ==
In the devicemotion specification:
The rotationRate: "It must be expressed as the rate of change of the angles defined in section 4.1"
So it means the rotation axes should be the following:
z axis: alpha
x axis: beta
y axis: gamma

However, Chrome on Android, Firefox browser on Android, and Safari browser on iPhone, they all implement rotationRate as the following:
x axis: alpha
y axis: beta
z axis: gamma

Given that this feature has been implemented in this way for a while and all the above browsers implement it in the same way which is different from the specification, updating the specification seems a better and easy solution. What do you think? Thanks!

The chromium related issue:

I also created a pull request:


Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/44 using your GitHub account
Received on Wednesday, 23 August 2017 18:31:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:51:15 UTC