Closed
Bug 705009
Opened 13 years ago
Closed 13 years ago
DeviceMotion accelerationIncludingGravity values are in units of "G"s
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: cjones, Assigned: cjones)
References
()
Details
Attachments
(1 file)
1.32 KB,
patch
|
dougt
:
review+
|
Details | Diff | Splinter Review |
The current spec says they should be in units of m/s^2, but they're currently reported as fractional multiples of 1G. I'm not sure what happens on other platforms. We should do what the spec says.
Assignee | ||
Comment 1•13 years ago
|
||
Assignee: nobody → jones.chris.g
Attachment #576649 -
Flags: review?(doug.turner)
Comment 2•13 years ago
|
||
Comment on attachment 576649 [details] [diff] [review] Report DeviceMotion values in units of m/s^2, not Gs, per current spec Review of attachment 576649 [details] [diff] [review]: ----------------------------------------------------------------- this is fine, thanks! could you also make sure that the absolute property of DeviceOrientationEvent is |true|?
Attachment #576649 -
Flags: review?(doug.turner) → review+
Assignee | ||
Comment 3•13 years ago
|
||
It's set to true unconditionally at http://mxr.mozilla.org/mozilla-central/source/dom/system/nsDeviceMotion.cpp#275, the only site I found. I don't know whether the data is absolute per spec or not.
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 4•13 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/601d585e1e35
Keywords: checkin-needed
Target Milestone: --- → mozilla11
Comment 5•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/601d585e1e35
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•