{ "id": "62429", "key": "TIMOB-1797", "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": "11228", "name": "Release 1.5.0 M03", "archived": true, "released": true, "releaseDate": "2010-11-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:12.000+0000", "created": "2011-04-15T03:02:40.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:12.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}

touchcancel not happening with this code, instead touchend is. I\nwould expect that if you touch and hold on the view, then maintain\nthe hold and drag off the view and release, you would get\ntouchcancel instead of touchend. I'm getting touchend.

\n
\n\nvar notification = Ti.UI.createNotification({\n    duration: Ti.UI.NOTIFICATION_DURATION_LONG\n    \n});\nfunction showStatus(text)\n{\n    notification.hide();\n    notification.message = text;\n    notification.show();\n}\nvar win = Ti.UI.currentWindow;\n\nvar events = '';\nfunction showEventStream(thisevent) {\n    if (events.length > 0) {\n        events += \"; \";\n    }\n    events += thisevent;\n    showStatus(events);\n}\n\nvar v = Ti.UI.createView({\n    backgroundColor: 'blue',\n    top: 10, left: 10, right: 10, height: 200\n});\nv.addEventListener('touchend', function(){\n    showEventStream('touchend');\n});\nv.addEventListener('touchstart', function(){\n    showEventStream('touchstart');\n});\nv.addEventListener('touchcancel', function(){\n    showEventStream('touchcancel');\n});\nwin.add(v);\n
{html}", "attachment": [], "flagged": false, "summary": "Android: touchcancel not firing when move touch off of view and over to empty window space", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "126705", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [40e73fd2352ee01c7faa14af4651a53cfd78ba26])\n[#1797 state:fixed-in-qa] added in rect detection\nto send touchcancel. Hours looking at source didn't provide a clue\non why android isn't firing touchcancel outside of view. \nhttps://github.com/appcelerator/titanium_mobile/commit/40e73fd2352e...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:41.000+0000", "updated": "2011-04-15T03:02:41.000+0000" }, { "id": "126706", "author": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Titanium SDK version: 1.5.0 (12/03/10 10:38 33c2058) custom,\nAndroid sim 1.6/2.1

{html}", "updateAuthor": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:42.000+0000", "updated": "2011-04-15T03:02:42.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }