{ "id": "62233", "key": "TIMOB-1601", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-09-05T18:57:46.000+0000", "created": "2011-04-15T02:57:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "20533", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "inwardIssue": { "id": "100406", "key": "TIMOB-10747", "fields": { "summary": "TiAPI: Ti.Gesture is for user input via hardware, not for the software response", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T20:51:33.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

from community,
\r\n1.using the provided code create an iPad or iPhone app
\r\n2.starting in landscape mode, slowly rotate

\r\n

results:before the app UI changes over to portrait, the screen\r\nchanges to white, meaning the orientation change handler fired\r\nprior to the actual event.

\r\n
\r\n

var mainWin = Ti.UI.createWindow({//url:\"main.js\",

\r\n
\r\n                              title:'Decks',\r\n                              barColor:\"#333\",\r\n                              tabBarHidden: true\r\n                              });\r\n
\r\n

var decksTab = Ti.UI.createTab({title: \"Decks\", window:\r\nmainWin});
\r\nvar tabGroup = Titanium.UI.createTabGroup({});
\r\ntabGroup.addTab(decksTab);
\r\nmainWin.tab = decksTab;
\r\nmainWin.tabGroup = tabGroup;
\r\ntabGroup.open();

\r\n

mainWin.orientationModes = [

\r\n
\r\nTitanium.UI.PORTRAIT,\r\nTitanium.UI.LANDSCAPE_LEFT,\r\nTitanium.UI.LANDSCAPE_RIGHT\r\n
\r\n

];

\r\n

Ti.Gesture.addEventListener(

\r\n
\r\n'orientationchange', function(e) {\r\n    if (e.orientation == Titanium.UI.LANDSCAPE_LEFT ||\r\n        e.orientation == Titanium.UI.LANDSCAPE_RIGHT) {\r\n        mainWin.backgroundColor = \"#fff\";\r\n    } else {\r\n        mainWin.backgroundColor = \"#000\";\r\n    }\r\n});\r\n
{html}", "attachment": [], "flagged": false, "summary": "iOS: Orientation change event occurs before rotation on landscape->portrait", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126167", "author": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Any chance of this getting into 1.6? On the main screen of my\napp I had a background image behind a tableview. If I take no\naction, the image gets squished to fit into landscape mode, so I\nhad to create a separate image for landscape, and set that image\nwhen the orientation event fires. But because of this bug, when the\nuser is holding the device at certain angles the image rapidly\nflips back and forth between portrait and landscape versions,\ndespite the screen not rotating, and it looks pretty unprofessional\n(and many users don't connect it with an orientation problem). For\nthe latest release of my app I had to replace the background image\nwith a plain colour to avoid this problem, but now I have users\nasking me why I took away the image, and asking for it back.

{html}", "updateAuthor": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:57:06.000+0000", "updated": "2011-04-15T02:57:06.000+0000" }, { "id": "126168", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

An additional ticket reference: http://developer.appcelerator.com/helpdesk/view/67381

\n

Also an issue when tilting the iPhone of iPad away from the\nuser.

{html}", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:57:06.000+0000", "updated": "2011-04-15T02:57:06.000+0000" }, { "id": "126169", "author": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Original helpdesk ticket was http://developer.appcelerator.com/helpdesk/view/36731

{html}", "updateAuthor": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:57:06.000+0000", "updated": "2011-04-15T02:57:06.000+0000" }, { "id": "169686", "author": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "body": "I've noticed it while developing my new app. Extremely annoying, and makes it unusable, since the rotation logic is expensive, and because of this bug, it is fired multiple times even though the devices isn't rotated.\r\n\r\nI ran the issues testcase compiled with Ti 1.7.3 on an iPad running iOS 5, and the issue is still there.\r\n\r\nPlease fix!", "updateAuthor": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "created": "2011-10-19T10:23:13.000+0000", "updated": "2011-10-19T10:23:13.000+0000" }, { "id": "170977", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Bug is still valid, occurs in:\r\nTiMOB sdk version: 1.7.4, 1.8.0.v20111028154620\r\nStudio version: 1.0.6.201110251616\r\nOS version: Mac OS X Lion\r\nDevices tested on: ipad 4.3.5, iphone 5.0\r\n\r\nNote: Bug is more prominent if the device is in landscape orientation and you tilt (pitch axis) the device back and forth. ", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-10-31T16:19:16.000+0000", "updated": "2011-10-31T16:30:56.000+0000" }, { "id": "214674", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Issue seems to be reproducible using an iPhone 3GS with TiSDK 2.2.0v20120814103312.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-15T15:24:52.000+0000", "updated": "2012-08-15T15:24:52.000+0000" }, { "id": "217747", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ti.Gesture.orientationchange is an event triggered by the hardware accelerometer, and does not reflect the window's orientation. Watch TIMOB-10790 for the new event to listen for.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-05T18:57:33.000+0000", "updated": "2012-09-05T18:57:33.000+0000" }, { "id": "414925", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:51:33.000+0000", "updated": "2017-03-22T20:51:33.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }