{ "id": "60821", "key": "TIMOB-189", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:52:17.000+0000", "created": "2011-04-15T02:25:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "event", "gesture", "listener" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:52:17.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

I spent about two hours doing numerous tests and could not get\nit to work. I tried in the emulator and on my actual phone. Very\nfrustrating.

\n
\nTitanium.Gesture.addEventListener('orientationchange',function(e)\n    {\n       if (Titanium.Gesture.isLandscape(e.to))\n       {\n         document.getElementById(\"status\").innerHTML = 'Stop Shaking me';   \n       } \n       else if (Titanium.Gesture.isPortrait(e.to)) \n       {\n         document.getElementById(\"status\").innerHTML = 'Stop Shaking me';   \n       }\n    });\n
{html}", "attachment": [], "flagged": false, "summary": "Orientation Change gesture not working with SDK 3.1.2", "creator": { "name": "mjfransen", "key": "mjfransen", "displayName": "mjfransen", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mjfransen", "key": "mjfransen", "displayName": "mjfransen", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "122919", "author": { "name": "peter", "key": "peter", "displayName": "Peter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Same running on HTC Desire. TITANIUM Version 1.3.0 and 1.3.2

\n

also not running in any version:

\n

Titanium.Gesture.addEventListener ('orientationchange', function\n( e )
\n{

\n
\nlabelOnMainWindow.text = e.orientation;\n
\n

});

{html}", "updateAuthor": { "name": "peter", "key": "peter", "displayName": "Peter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:25:05.000+0000", "updated": "2011-04-15T02:25:05.000+0000" }, { "id": "122920", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [ed11289d1258b673db8f4f27fc8e555399bd289a])\n[#189\nstate:resolved] New @ContextSpecific annotation for module classes,\nto put their 'singletons' per context rather than per app. Apply to\nGestureModule to handle orientationchange listener not being\ncalled. \nhttp://github.com/appcelerator/titanium_mobile/commit/ed11289d1258b...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:25:07.000+0000", "updated": "2011-04-15T02:25:07.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }