[TIMOB-6243] MobileWeb: Accelerometer events are not parsed correctly.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-11-23T08:24:06.000+0000 |
Affected Version/s | Sprint 2011-46 |
Fix Version/s | Sprint 2011-47, Release 1.8.0.1 |
Components | MobileWeb |
Labels | n/a |
Reporter | Bryan Hughes |
Assignee | Chris Barber |
Created | 2011-11-20T15:56:28.000+0000 |
Updated | 2017-03-04T00:22:16.000+0000 |
Description
There are multiple bugs with accessing accelerometer events in mobileweb. First, the _checkMotion() method passes in an argument called ev that is later referred to as event. Also, event.acceleration doesn't always exist (called event.accelerationIncludingGravity in Firefox) and so must be checked.
Pull request https://github.com/appcelerator/titanium_mobile/pull/742
Closing ticket due to MobileWeb no longer being supported.