{ "id": "110733", "key": "TIMOB-12989", "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": null, "resolutiondate": null, "created": "2013-03-07T00:45:16.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [ { "id": "58450", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "127756", "key": "TIMOB-16637", "fields": { "summary": "Android - Subviews ignore touch enabled property of parent", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "58451", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "172640", "key": "TIMOB-26581", "fields": { "summary": "Android: Child view with \"touchEnabled\" false wrongly receives touch events if parent is touch enabled", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-02-22T18:37:15.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Desription \r\ntouchEnabled on view not working on Android. If touchEnabled property is set to false for any view it still fires the click event on that view. An app contain 3 views namely View1->View2->View3 (Parent->Child) and have registered the click event listeners for all views. Ideally when touchEnabled property is set to false for View1 (parent most) then no click event listener should fire for any view. Same is working fine for iOS. But in android it fires all the event even if touch enabled property is set to false for View1(most parent).\r\n\r\nh2. Test Case\r\n{code}\r\nvar win = Titanium.UI.createWindow({  \r\n    title:'Testing Touch Enabled',\r\n    backgroundColor:'#fff'\r\n});\r\n \r\nvar view1=Titanium.UI.createView({\r\n    touchEnabled:false,\r\n    borderRadius:10,\r\n        backgroundColor:'red',\r\n        width:50,\r\n        height:50\r\n});\r\nvar view2=Titanium.UI.createView({\r\n    //touchEnabled:false,\r\n    backgroundColor:'yellow',\r\n});\r\nvar view3=Titanium.UI.createView({\r\n    //touchEnabled:false\r\n});\r\n \r\nview2.add(view3);\r\nview1.add(view2);\r\nwin.add(view1);\r\n \r\n \r\n \r\nview1.addEventListener('click', function(){\r\n    Titanium.API.info('VIEW 1');\r\n    alert('VIEW1');\r\n});\r\n \r\nview2.addEventListener('click', function(){\r\n    Titanium.API.info('VIEW 2');\r\n    alert('VIEW2');\r\n});\r\n \r\nview3.addEventListener('click', function(){\r\n    Titanium.API.info('VIEW 3');\r\n    alert('VIEW3');\r\n});\r\n \r\nwin.open();\r\n{code}\r\n\r\nh2. Steps to Reproduce\r\n1. Create a project using above code\r\n2. Run the application in android (device/simulator)\r\n3. click on view\r\n\r\nh3. Expected Behaviour\r\nClick event should not fire and logs should not get printed on console as specified in eventListener.\r\n\r\nh3. Actual Behaviour\r\nClick event gets fired and logs get printed :\r\nVIEW1\r\nVIEW2\r\nVIEW3\r\n", "attachment": [ { "id": "35984", "filename": "test.zip", "author": { "name": "lbrenman", "key": "lbrenman", "displayName": "Leor Brenman", "active": true, "timeZone": "America/Havana" }, "created": "2013-03-07T00:45:16.000+0000", "size": 3695967, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Events still fire if touchEnabled on view is false", "creator": { "name": "lbrenman", "key": "lbrenman", "displayName": "Leor Brenman", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "lbrenman", "key": "lbrenman", "displayName": "Leor Brenman", "active": true, "timeZone": "America/Havana" }, "environment": "Android:4.2.1, 4.4\r\nMac OSX : 10.9.1\r\nSDK : 3.2.1, 3.2.0", "comment": { "comments": [ { "id": "295517", "author": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "body": "Having this same issue; anyone using a sliding menu paradigm will run into this problem as well.\n\nThe work-around is to have a transparent view that sits on top of the main content view and show it when the menu opens to disable any clicks, but this often presents other problems in itself.", "updateAuthor": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "created": "2014-03-04T16:42:21.000+0000", "updated": "2014-03-04T16:42:21.000+0000" }, { "id": "307375", "author": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "body": "Any movement on this?", "updateAuthor": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "created": "2014-06-03T18:11:16.000+0000", "updated": "2014-06-03T18:11:16.000+0000" }, { "id": "311871", "author": { "name": "ffabreti", "key": "ffabreti", "displayName": "f", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can confirm the issue. I have run test case against SDK 3.2.1 and Android Emulator 4.2.2\r\nThis badly breaks UI design, please fix it!", "updateAuthor": { "name": "ffabreti", "key": "ffabreti", "displayName": "f", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-01T18:42:20.000+0000", "updated": "2014-07-01T18:42:20.000+0000" }, { "id": "318642", "author": { "name": "wood1k", "key": "wood1k", "displayName": "Alexey Chulochnikov", "active": true, "timeZone": "Europe/Helsinki" }, "body": "Please fix it!", "updateAuthor": { "name": "wood1k", "key": "wood1k", "displayName": "Alexey Chulochnikov", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2014-08-14T12:40:05.000+0000", "updated": "2014-08-14T12:40:05.000+0000" }, { "id": "318660", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I believe this is the same issue as TIMOB-16637? Is that correct?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-14T16:07:30.000+0000", "updated": "2014-08-14T16:07:30.000+0000" }, { "id": "354741", "author": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi All,\r\n\r\nI am also getting this issue,\r\nIs there any improvement?\r\n\r\nAwaiting for your response", "updateAuthor": { "name": "simbu", "key": "simbu", "displayName": "Silambarasan Raman", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2015-06-10T08:49:59.000+0000", "updated": "2015-06-10T08:49:59.000+0000" }, { "id": "421721", "author": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "body": "4 years later, we're still seeing this behaviour :)", "updateAuthor": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-12T11:13:13.000+0000", "updated": "2017-06-12T11:13:13.000+0000" }, { "id": "433500", "author": { "name": "gfigueras", "key": "gfigueras", "displayName": "Guillermo Figueras", "active": true, "timeZone": "Europe/Madrid" }, "body": "No news on this? It's still happening on SDK 6.3.0.GA & 7.X.X", "updateAuthor": { "name": "gfigueras", "key": "gfigueras", "displayName": "Guillermo Figueras", "active": true, "timeZone": "Europe/Madrid" }, "created": "2018-01-23T08:36:18.000+0000", "updated": "2018-01-23T08:36:18.000+0000" }, { "id": "448388", "author": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "body": "still happening in 8.0.0.GA", "updateAuthor": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-15T13:54:30.000+0000", "updated": "2019-05-15T13:54:30.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }