{ "id": "61091", "key": "TIMOB-459", "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": [ { "id": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:07.000+0000", "created": "2011-04-15T02:29:43.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:07.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": "{html}

Base UI => Views => Events with Views

\n

There is a red square and two window event listeners (touchstart\nand singletap)

\n

the x/y for touchstart seems right always

\n

the x/y for singletap seems relative to the red box when you\nclick inside the red box

{html}", "attachment": [], "flagged": false, "summary": "window event properties don't match for different events", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123331", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Turns out touchstart was wrong in different ways. All view\ntouch/tap events now return a point relative to the view they're\nin, or for movement events, the view in which the movement began\n(which is why the next property is necessary).

\n

There is also a new 'globalPoint' property on touch events which\nreferences the point in the global coordinate system, NOT the\nwindow's coordinate system.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:29:44.000+0000", "updated": "2011-04-15T02:29:44.000+0000" }, { "id": "123332", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [5d538e94fd4224e0992dbffe6bc6f4eea768fe05])\nCloses #459: Touch events now return coordinates\nrelative to their (starting) view, added 'globalPoint' property to\nevent dictionary \nhttp://github.com/appcelerator/titanium_mobile/commit/5d538e94fd422...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:29:44.000+0000", "updated": "2011-04-15T02:29:44.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }