{ "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+

\n

Ticket with code sample: http://developer.appcelerator.com/helpdesk/view/63261#c298121

{html}", "attachment": [], "flagged": false, "summary": "Android Issue - 1.5.x+ - ImageView touchstart / touchmove do not have the globalPoint properties", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": null, "comment": { "comments": [ { "id": "129421", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Fixing the tags, title, etc. to conform to spec.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:29:40.000+0000", "updated": "2011-04-15T03:29:40.000+0000" }, { "id": "129422", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "{html}

Code sample is in the above referenced URL. http://developer.appcelerator.com/helpdesk/view/63261#c298121

\n

Here 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
{html}", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-04-15T03:29:40.000+0000", "updated": "2011-04-15T03:29:40.000+0000" }, { "id": "129423", "author": { "name": "brian", "key": "brian", "displayName": "Brian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This is not just for image views...it happens on regular views\nas well, which makes this a high not a low

{html}", "updateAuthor": { "name": "brian", "key": "brian", "displayName": "Brian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:29:41.000+0000", "updated": "2011-04-15T03:29:41.000+0000" }, { "id": "129424", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This was a feature added for iOS in #459

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:29:41.000+0000", "updated": "2011-04-15T03:29:41.000+0000" }, { "id": "164166", "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:56:25.000+0000", "updated": "2011-08-26T11:56:25.000+0000" }, { "id": "411268", "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-10T18:54:50.000+0000", "updated": "2017-03-10T18:54:50.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }