Open
Bug 722665
Opened 12 years ago
Updated 2 years ago
Accelerometer data has it sign reversed for MacBook Pro 8,2
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: teknik.tdr, Unassigned)
References
()
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7 Steps to reproduce: See the following code: window.addEventListener('devicemotion', function(eventData) { var acceleration = eventData.accelerationIncludingGravity; var facingUp = -1; if (acceleration.z > 0) facingUp = +1; var tiltLR = ((acceleration.x) * 90); var tiltFB = ((acceleration.y) * 90 * facingUp); }, false); This is part of http://thedarkrising.com/experiments/orientation/ which also includes a workaround. Actual results: tiltLR has its sign reversed (i.e. acceleration.x) on MacBook Pro 8,2. Google Chrome works fine (don't know if they implement any workaround). I tested it on a MacBook from mid-2008 (white ones, non-unibody) and works fine. Expected results: It should have the correct sign for acceleration.x. Apparently this bug is the same or similar to #521848 "Accelerometer on newer MBP have x and y reversed".
Reporter | ||
Updated•12 years ago
|
Updated•12 years ago
|
Depends on: omgreallyapple
Updated•12 years ago
|
Component: Untriaged → Widget: Cocoa
Product: Firefox → Core
QA Contact: untriaged → cocoa
Comment 1•12 years ago
|
||
Gross, we may just need to add another hunk like: https://bugzilla.mozilla.org/attachment.cgi?id=405971
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•