{ "id": "117119", "key": "TIMOB-14534", "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": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-17T20:37:12.000+0000", "created": "2013-07-12T01:29:30.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.1.2", "qe-testadded" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-18T17:31:25.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": "h5. Problem description\r\n\r\nClicking on a label whose touchEnabled property is set to false, still triggers the touchStart event on the parent object. So, if the label is included into a view, the touchStart event of the view is triggered twice.\r\n\r\nThis is happening only if the touchEnabled property is set to false.\r\nIf is set to true, or if the bubbleParent property is set to false, the touchStart event is triggered only once.\r\n\\\\\r\nh6. This behavior is not reproducible with TiSDK 3.2.0\r\n\r\n\\\\\r\nh5. Steps to reproduce\r\n \r\ncontroller/index.js\r\n{code}\r\nfunction touchstart(e){\r\n\te.source.backgroundColor='red';\r\n\tTi.API.info('#### touchstart');\r\n};\r\n\r\nfunction touchend(e){\r\n\te.source.backgroundColor='orange';\r\n\tTi.API.info('#### touchend');\r\n};\r\n\r\n$.index.open();\r\n{code}\r\n\r\nstyles/app.tss\r\n{code}\r\n\"Window\": {\r\n backgroundColor: \"#888\"\r\n}\r\n \r\n\"#label\": {\r\n\tfont:{\r\n\t\tfontSize:'28dp'\r\n\t},\r\n color:'yellow',\r\n text:'click on the Blue view, then on the Label',\r\n touchEnabled:false,\r\n // bubbleParent:false\r\n} \r\n\r\n\"View\":{\r\n\ttop:'5%',\r\n\tbottom: '5%',\r\n\tleft:'5%',\r\n\tright:'5%',\r\n\tbackgroundColor:'blue'\r\n}\r\n\r\n{code}\r\n\r\nviews/index.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\r\n\r\n{code}\r\n\r\n1. Run the sample code on Android, check the logs and click on the Blue view (not on the label)\r\nResult: touchstart event is triggered once, background color turns to red then orange after the touchend event\r\n2. Click on the label\r\nResult: touchstart event is now triggered twice, label background color turns red, but then the touchend event is not triggered for the label and it remains red\r\n3. Comment out 'touchEnabled:false' from app.tss, rebuild and click on the label\r\nResult: touchstart is only triggered once\r\n4. Set touchEnabled:false and bubbleParent:false in app.tss, rebuild and click on the label\r\nResult: touchstart is only triggered once", "attachment": [], "flagged": false, "summary": "Android: 'touchEnabled:false' triggers touchstart event incorrectly", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 3.1.2.v20130710144553 and 3.1.1 GA\r\nAlloy 1.1.3 and 1.2.0\r\nAppcelerator Studio 3.1.2.201307101037\r\n", "comment": { "comments": [ { "id": "275494", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Since it does not appear in 3.2.0, and there are no more 3.1.X branches, I will consider it fixed.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-17T20:37:12.000+0000", "updated": "2013-10-17T20:37:12.000+0000" }, { "id": "275676", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed. \n\nTiSDK 3.2.0.v20131017152001 \nCLI 3.2.0\nTitanium Studio 3.2.0.201310152326\n\nClosing. ", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-18T17:31:06.000+0000", "updated": "2013-10-18T17:31:06.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }