{ "id": "76910", "key": "TIMOB-5538", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2018-04-04T23:57:43.000+0000", "created": "2011-06-27T05:35:55.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-05T00:00:04.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "Constants FACE_UP, FACE_DOWN, UPSIDE_PORTRAIT don't returned in orientationchange.orientation of Ti.Gesture module. ", "attachment": [], "flagged": false, "summary": "MobileWeb: Constants FACE_UP, FACE_DOWN, UPSIDE_PORTRAIT don't returned in orientationchange.orientation of Ti.Gesture module", "creator": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "subtasks": [], "reporter": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "environment": null, "closedSprints": [ { "id": 199, "state": "closed", "name": "2014 Sprint 18 SDK", "startDate": "2014-09-02T22:56:57.421Z", "endDate": "2014-09-13T00:00:00.000Z", "completeDate": "2014-09-15T20:08:19.146Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "157905", "author": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "body": "FACE_DOWN still not working.", "updateAuthor": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "created": "2011-06-28T04:57:00.000+0000", "updated": "2011-06-28T04:57:00.000+0000" }, { "id": "157906", "author": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "body": "{code:JavaScript}\r\nvar win = Ti.UI.currentWindow;\r\nwin.backgroundColor = '#EEE';\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext: '1. Rotate your device 90 degrees.\\n 2. Shake your device',\r\n\tfontSize: 20,\r\n\ttop: 40,\r\n\tleft: 30\r\n});\r\n\r\nvar closeButton = Ti.UI.createButton({\r\n\ttitle:'Close Window',\r\n\theight:50,\r\n\twidth:140,\r\n\tfontSize: 16,\r\n\ttop:200,\r\n\tleft:90\r\n});\r\n\r\ncloseButton.addEventListener('click', function(){\r\n\tTi.Gesture.removeEventListener('orientationchange',orientChange);\r\n\tTi.Gesture.removeEventListener('shake',shaking);\r\n\tTitanium.UI.currentWindow.close();\r\n});\r\n\r\nwin.add(closeButton);\r\nwin.add(label);\r\nfunction orientChange(e){\r\n\tvar orientName = '';\r\n\tswitch(e.orientation){\r\n\t\tcase 1:{\r\n\t\torientName = 'FACE_DOWN';\r\n\t\tbreak}\r\n\t\tcase 2:{\r\n\t\torientName = 'FACE_UP';\r\n\t\tbreak}\r\n\t\tcase 3:{\r\n\t\torientName = 'PORTRAIT';\r\n\t\tbreak}\r\n\t\tcase 4:{\r\n\t\torientName = 'UPSIDE_PORTRAIT';\r\n\t\tbreak}\r\n\t\tcase 5:{\r\n\t\torientName = 'LANDSCAPE_LEFT';\r\n\t\tbreak}\r\n\t\tcase 6:{\r\n//\t\torientName = 'LANDCAPE_RIGHT';\r\n\t\torientName = e.orientation;\r\n\t\tbreak}\r\n\t\tdefault: {\r\n\t\torientName = e.orientation;\r\n\t\t}\r\n\t}\r\n\t\r\n\talert('Your orientation is '+ orientName);\r\n};\r\n\r\nfunction shaking(){\r\n\talert('You are shaking your device!');\r\n};\r\nTi.Gesture.addEventListener('orientationchange',orientChange);\r\nTi.Gesture.addEventListener('shake',shaking);\r\n\r\n{code}", "updateAuthor": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "created": "2011-06-28T05:02:09.000+0000", "updated": "2011-06-28T05:02:09.000+0000" }, { "id": "158011", "author": { "name": "mnegadaylov", "key": "mnegadaylov", "displayName": "Maxim Negadaylov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Works on iPhone. On Android does not. ", "updateAuthor": { "name": "mnegadaylov", "key": "mnegadaylov", "displayName": "Maxim Negadaylov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-29T05:27:57.000+0000", "updated": "2011-06-29T05:27:57.000+0000" }, { "id": "436500", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:57:43.000+0000", "updated": "2018-04-04T23:57:43.000+0000" }, { "id": "436508", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-05T00:00:04.000+0000", "updated": "2018-04-05T00:00:04.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }