{ "id": "63422", "key": "TIMOB-2790", "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": "2011-08-26T11:56:25.000+0000", "created": "2011-04-15T03:29:39.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [ { "id": "12559", "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": "12558", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "79684", "key": "TIMOB-5122", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-10T18:54:50.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}
The touchstart / touchmove events do not have the globalPoint\nproperties in the callback like they do in iOS. This is the case\nfor any Ti SDK version 1.5+
\nTicket with code sample: http://developer.appcelerator.com/helpdesk/view/63261#c298121
Fixing the tags, title, etc. to conform to spec.
Code sample is in the above referenced URL. http://developer.appcelerator.com/helpdesk/view/63261#c298121
\nHere is the customer's code for convenience. the globalPoint\nproperties of the callback are missing on Android.
\n\nvar win = Titanium.UI.createWindow({ \n title:'Test',\n backgroundColor:'#fff'\n});\nwin.orientationModes = [ Titanium.UI.LANDSCAPE_LEFT ];\nwin.orientation = Titanium.UI.LANDSCAPE_LEFT;\n\nfunction TouchStart(e){\n Ti.API.info('Touchstart fired');\n var curImage = e.source;\n\n curImage.ox = win.width - e.globalPoint.y - curImage.center.x;\n curImage.oy = e.globalPoint.x - curImage.center.y;\n};\n\nfunction TouchMove(e){\n Ti.API.info('TouchMove fired');\n var curImage = e.source;\n \n curImage.center = {\n x:(win.width - e.globalPoint.y - curImage.ox),\n y:(e.globalPoint.x - curImage.oy)\n };\n\n};\n\n\nvar image = Titanium.UI.createImageView({\n image:'http://www.appcelerator.com/wp-content/themes/appcelerator/img/HERO_iPh_social.png', \n backgroundColor:'transparent', \n opacity: '0.65',\n canScale: true,\n enableZoomControls:false,\n height:'100',\n width: '100',\n top:10,\n left:10});\n \n\nimage.addEventListener('touchstart', TouchStart);\nimage.addEventListener('touchmove', TouchMove);\n \nwin.add(image);\nwin.open({fullscreen:true});
\n
This is not just for image views...it happens on regular views\nas well, which makes this a high not a low
This was a feature added for iOS in #459