{ "id": "90995", "key": "TIMOB-8907", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13403", "description": "Sprint 2012-11 Core", "name": "Sprint 2012-11 Core", "archived": true, "released": true, "releaseDate": "2012-06-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-25T17:38:28.000+0000", "created": "2012-04-27T17:34:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core", "module_gesture", "qe-testadded" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-12T12:03:38.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": "Click event does not fire for view when a touchStart listener is present on view. Example code:\r\n{code}\r\nvar baseHeight = 200;\r\nvar baseWidth = 200;\r\n \r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff',\r\n fullscreen: false,\r\n exitOnClose: true\r\n});\r\nvar view = Ti.UI.createView({\r\n height: baseHeight,\r\n width: baseWidth,\r\n backgroundColor: '#a00'\r\n});\r\nvar label = Ti.UI.createLabel({\r\n text: baseWidth + ' x ' + baseHeight,\r\n color: '#fff',\r\n font: {\r\n fontSize: 24,\r\n fontWeight: 'bold'\r\n }\r\n});\r\nview.add(label);\r\nwin.add(view);\r\n \r\nview.addEventListener('pinch', function(e) {\r\n view.height = baseHeight * e.scale;\r\n view.width = baseWidth * e.scale;\r\n label.text = Math.round(view.width) + ' x ' + Math.round(view.height);\r\n});\r\nview.addEventListener('touchstart', function(e) { \r\n baseHeight = view.height;\r\n baseWidth = view.width;\r\n});\r\nview.addEventListener('click', function(e) { \r\n Ti.API.info(\">>>>>>>>>> inside click event\");\r\n});\r\n \r\nwin.open();\r\n{code}\r\n\r\nCommenting out the touchstart listener will allow the click events to get through.", "attachment": [], "flagged": false, "summary": "Android: click event does not fire correctly when touchStart listener is present on view", "creator": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "195655", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR pending https://github.com/appcelerator/titanium_mobile/pull/2250", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-22T15:25:14.000+0000", "updated": "2012-05-22T15:25:14.000+0000" }, { "id": "199890", "author": { "name": "sguduru", "key": "sguduru", "displayName": "Smitha Guduru", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Click event fires correctly in sample code.\r\nTested on \r\nTitanium Studio, build: 2.2.0.201206222035\r\nTitanium SDK: 2.1.0.v20120622174154\r\nDevice:Xoom(4.0.3)", "updateAuthor": { "name": "sguduru", "key": "sguduru", "displayName": "Smitha Guduru", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T10:49:33.000+0000", "updated": "2012-06-23T10:49:33.000+0000" }, { "id": "199891", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "verified fix with \r\nTitanium Studio, build: 2.1.0.201206221045\r\nTitanium SDK: 2.1.0.v20120622174154\r\nDevice: Nexus S 4.0.4\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T10:51:33.000+0000", "updated": "2012-06-23T10:51:33.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }