{ "id": "62125", "key": "TIMOB-1493", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-07-25T17:26:07.000+0000", "created": "2011-04-15T02:54:15.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "19380", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-26T22:20:46.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}

If you attach an event listener to a MapView and then remove it,\r\nthe MapView will stay frozen, e.g. no user interaction will be\r\npossible.

\r\n

To reproduce the problem, run the attached app.js file and try\r\nthis:

\r\n
    \r\n
  1. Click the \"Add listener\" button
  2. \r\n
  3. Note you can move and pinch the map
  4. \r\n
  5. Click the \"Remove listener\" button
  6. \r\n
  7. MapView \"freezes\", you are not able to move or pinch the\r\nmap.
  8. \r\n
\r\n

The issue seems to come from\r\nhandleListenerRemovedWithEvent in\r\nTiUIView.m, specifically this part:

\r\n
\r\nself.userInteractionEnabled = NO;\r\nself.multipleTouchEnabled = NO;\r\n
\r\nUser interaction should probably stay enabled with MapView even\r\nwhen there aren't any touch event listeners attached.
{html}", "attachment": [ { "id": "18002", "filename": "app.js", "author": { "name": "goranskledar", "key": "goranskledar", "displayName": "Goran Skledar", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:54:16.000+0000", "size": 795, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "iOS: MapView user interaction disabled when removing event listener", "creator": { "name": "goranskledar", "key": "goranskledar", "displayName": "Goran Skledar", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "goranskledar", "key": "goranskledar", "displayName": "Goran Skledar", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "209482", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce in SDK 2.2.0.014b86f, iPhone Sim 5.1.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-25T17:26:07.000+0000", "updated": "2012-07-25T17:26:07.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }