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

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:
https://w3c.github.io/deviceorientation/spec-source-orientation.html#devicemotion
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:
https://bugs.chromium.org/p/chromium/issues/detail?id=541607

I also created a pull request:
https://github.com/w3c/deviceorientation/pull/43

Jun

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