Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6243] MobileWeb: Accelerometer events are not parsed correctly.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-11-23T08:24:06.000+0000
Affected Version/sSprint 2011-46
Fix Version/sSprint 2011-47, Release 1.8.0.1
ComponentsMobileWeb
Labelsn/a
ReporterBryan Hughes
AssigneeChris Barber
Created2011-11-20T15:56:28.000+0000
Updated2017-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.

Comments

  1. Bryan Hughes 2011-11-20

    Pull request https://github.com/appcelerator/titanium_mobile/pull/742
  2. Lee Morris 2017-03-04

    Closing ticket due to MobileWeb no longer being supported.

JSON Source