{ "id": "171758", "key": "AC-5764", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2018-06-12T10:09:20.000+0000", "created": "2018-06-07T10:20:34.000+0000", "labels": [ "android", "orientationChange" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-06-12T10:09:21.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When executing the following code, the onOrientationChange function keeps on executing infinitely.\r\n\r\n{code:xml|title=index.xml}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n{code:javascript|title=index.js}\r\n$.index.open();\r\n\r\nTi.Gesture.addEventListener(\"orientationchange\", onOrientationChange);\r\n\r\nfunction onOrientationChange(e) {\r\n console.log(e.orientation);\r\n}\r\n{code}\r\n\r\nResponse is something like:\r\n\r\n{code}\r\n[INFO] 6\r\n[INFO] 4\r\n[INFO] 1\r\n[INFO] 3\r\n[INFO] 1\r\n[INFO] 6\r\n[INFO] 1\r\n[INFO] 3\r\n[INFO] 1\r\n[INFO] 3\r\netc...\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Ti.Gesture orientationchange event keeps on firing", "creator": { "name": "michielve", "key": "michielve", "displayName": "Michiel van Eerd", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michielve", "key": "michielve", "displayName": "Michiel van Eerd", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Mac OS High Sierra 10.13.4\r\nNode v8.9.1\r\nTitanium SDK 7.1.1.GA\r\nAndroid 8", "comment": { "comments": [ { "id": "438243", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I have tested your issue on Android 8 device. I wasn't able to reproduce the issue. The onOrientationChange function only fires on when the device orientation is changed, not continuously. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-06-08T09:54:25.000+0000", "updated": "2018-06-08T09:54:25.000+0000" }, { "id": "438245", "author": { "name": "michielve", "key": "michielve", "displayName": "Michiel van Eerd", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks, I can also see that it's working okay on my device, but on the Android emulator it's firing very fast infinitely.", "updateAuthor": { "name": "michielve", "key": "michielve", "displayName": "Michiel van Eerd", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-06-08T10:06:06.000+0000", "updated": "2018-06-08T10:06:06.000+0000" }, { "id": "438264", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I also tested on emulator and find it's also ok in there. Can you share a video demonstration of the issue? Thanks. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-06-09T09:34:18.000+0000", "updated": "2018-06-09T09:34:18.000+0000" }, { "id": "438330", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nCan you please share a video to demonstrate of the issue? It would be helpful for better investigation.\r\n\r\nThanks", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2018-06-12T08:28:32.000+0000", "updated": "2018-06-12T08:31:02.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }