{ "id": "78589", "key": "TIMOB-4859", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "2011-08-26T11:57:39.000+0000", "created": "2011-08-01T10:45:36.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "feature", "ios" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [ { "id": "12561", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "79679", "key": "TIMOB-5118", "fields": { "summary": "iOS: Deprecate globalpoint member", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "12560", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "79682", "key": "TIMOB-5121", "fields": { "summary": "Add a member function to View called 'convertPointToView'", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:09:45.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": "The globalPoint coordinates returned from touch events on an element do not update once the device is rotated; when in portrait mode the X coordinate will increase as you touch from left-to-right, but if you switch to landscape mode the X coordinate becomes the Y coordinate, and vice versa. Sample code below; to reproduce, start in portrait mode and drag left to right (X coordinate increases as expected)... then flip into landscape and drag from left to right; X coordinate does not change as expected.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar view = Ti.UI.createView();\r\nvar output = Ti.UI.createLabel({\r\n\ttop: 20,\r\n\tleft: 20,\r\n\twidth: 280,\r\n\tcolor: \"#FFF\",\r\n\ttextAlign: \"center\",\r\n\tfont: {\r\n\t\tfontSize: 16,\r\n\t\tfontWeight: \"bold\"\r\n\t},\r\n\ttext: \"Touch and drag anywhere\"\r\n});\r\n\r\nview.addEventListener(\"touchmove\", function(_event) {\r\n\toutput.text = \"X Global Point: \" + _event.globalPoint.x;\r\n});\r\n\r\nview.add(output);\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\nOriginally reported as a bug, but was invalidated as globalPoint is attached at the device level, not window level. Changed from bug to feature request as per TIMOB-4695. Request is to allow translation from device level to window level.", "attachment": [], "flagged": false, "summary": "Allow conversion of globalPoints to rotation-based values", "creator": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "environment": "iOS 4.3\r\nTiMobSDK 1.7.1", "comment": { "comments": [ { "id": "164167", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "globalpoint is being deprecated. Please see linked item for customer solution.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-26T11:57:39.000+0000", "updated": "2011-08-26T11:57:39.000+0000" }, { "id": "410926", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:09:45.000+0000", "updated": "2017-03-09T23:09:45.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }