{ "id": "85742", "key": "TIMOB-7483", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-01-31T10:04:11.000+0000", "created": "2012-01-31T09:50:16.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:08:35.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": "h3. Issue\r\n\r\nWhen a view contains a 'twofingertap' event listener, this is the only listener ever triggered, regardless of other touch event listeners.\r\n\r\n\r\nh3. Testing\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor:'red',\r\n\twidth:200,\r\n\theight:200\r\n});\r\n\r\nvar events = ['click', 'dblclick', 'doubletap', 'longpress', \r\n\t'pinch', 'singletap', 'swipe', 'touchcancel', 'touchend', 'touchmove',\r\n\t'touchstart', 'twofingertap'];\t\r\n\t\r\nfor (var index in events) \r\n{\r\n\tvar event = events[index];\r\n\tview.addEventListener(event, function() {\r\n\t\tTi.API.info('Event: '+event);\r\n\t});\r\n}\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\n1. Try and perform all events on the view\r\n\r\n*PASS:* Events fire correctly\r\n*FAIL:* Only {{twofingertap}} fires", "attachment": [], "flagged": false, "summary": "iOS: 'twofingertap' overrides all other events", "creator": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "181212", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Appears to be, instead, a reference vs. value issue. Checking with somebody more experienced with JS interpreter behavior when it comes to configuration loops like this before marking invalid or changing description.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-31T10:00:23.000+0000", "updated": "2012-01-31T10:00:23.000+0000" }, { "id": "181213", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a good demonstration of a JS antipattern, it turns out.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-31T10:04:11.000+0000", "updated": "2012-01-31T10:04:11.000+0000" }, { "id": "410921", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:08:35.000+0000", "updated": "2017-03-09T23:08:35.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }