{ "id": "103862", "key": "TIMOB-11856", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-06-13T20:38:45.000+0000", "created": "2012-10-24T19:54:05.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "23105", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "103474", "key": "TIMOB-11841", "fields": { "summary": "Android: 'longclick' event data not filled (x, y ...)", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "23104", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "105406", "key": "TIMOB-11845", "fields": { "summary": "Android: support the 'longpress' event on MapView", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "55854", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "169626", "key": "TIMOB-25190", "fields": { "summary": "Android: touchEnabled is not true by default if we have a property specified for the tableViewRow", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "55855", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "169632", "key": "TIMOB-25193", "fields": { "summary": "Android: Touches are not shown/intercepted if center of the tableViewRow are clicked", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "updated": "2017-08-24T22:48:41.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": "In Android emulator, setting {{touchEnabled: false}} on a child view causes a {{longpress}} event to fire when a {{click}} is performed on the child. Also, when a {{longpress}} is performed on the child, you get two {{longpress}} events.\r\n\r\nI have a parent view that contains a child view, and I set {{touchEnabled: false}} on the child view.\r\n\r\n*1)* On Android in the emulator, When I do a click on the child view, not only does the parent view receive a click event (expected) but it also receives a longpress event (unexpected). On iOS, the longpress event does not fire on a click (expected).\r\n\r\n*2)* Not sure if this should be a separate bug report, so I'll mention it here first: Additionally, when I actually do a longpress on the child view, I get two longpress events on the parent, instead of the expected single event.\r\n\r\nIf I set {{touchEnabled: true}} on the child view, then things work as expected in Android in both above cases.\r\n\r\nThe following code can be pasted into app.js to illustrate the problem:\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white', layout: 'vertical'});\r\n\r\nvar parentView = Ti.UI.createView({\r\n top:10,\r\n width:'90%',\r\n height:'90%',\r\n backgroundColor:'blue',\r\n layout: 'vertical',\r\n id: 'parent'\r\n});\r\nparentView.addEventListener('click',function(e){\r\n alert('parent click: e.source: ' + e.source.id + ', this: ' + this.id);\r\n Ti.API.info('parent click: e.source: ' + e.source.id + ', this: ' + this.id);\r\n});\r\nparentView.addEventListener('longpress',function(e){\r\n alert('parent longpress: e.source: ' + e.source.id + ', this: ' + this.id);\r\n Ti.API.info('parent longpress: e.source: ' + e.source.id + ', this: ' + this.id);\r\n});\r\n\r\nvar childView = Ti.UI.createView({\r\n top: 50,\r\n width: '50%',\r\n height: '50%',\r\n backgroundColor: 'red',\r\n id: 'child',\r\n touchEnabled: false\r\n});\r\n\r\nparentView.add(childView);\r\nwin.add(parentView);\r\nwin.open();\r\n{code}\r\n\r\nLink to related Q&A entry:[http://developer.appcelerator.com/question/143926/android-touchenabled-false-on-child-view-causes-longpress-event-to-fire-when-clicked]", "attachment": [], "flagged": false, "summary": "Android: touchEnabled false on child view causes longpress event to fire when clicked", "creator": { "name": "bigotilda", "key": "bigotilda", "displayName": "Nathan Nadeau", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bigotilda", "key": "bigotilda", "displayName": "Nathan Nadeau", "active": true, "timeZone": "America/New_York" }, "environment": "*Application type:* Mobile Titanium SDK: *Titanium SDK version:* 2.1.3 (10/02/12 16:16 15997d0); also confirmed in versions 2.0.1 and above. *Target Platform:* Android versions 2.2 to 4.0.3 *Device:* Android emulator *Host OS:* OS X 10.6.8 *Titanium Studio:* 2.1.2.201208301612", "comment": { "comments": [ { "id": "228460", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Samsung Galaxy S2 TiSDK 2.1.4 GA, 3.0.0 CI.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-26T18:50:16.000+0000", "updated": "2012-11-26T18:50:16.000+0000" }, { "id": "231584", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Any ETA on this?", "updateAuthor": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-12-16T11:51:53.000+0000", "updated": "2012-12-16T11:51:53.000+0000" }, { "id": "242181", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\nDevice: Samsung galaxy s duos Android version: 4.0.4", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-14T05:45:53.000+0000", "updated": "2013-03-14T05:45:53.000+0000" }, { "id": "278860", "author": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "body": "Can confirm that this bug exists in SDK 3.1.3 tested on a Samsung S3\r\n\r\nIt would be good to get this fixed. Quite a few watchers and quite a serious bug", "updateAuthor": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "created": "2013-11-09T23:23:54.000+0000", "updated": "2013-11-09T23:23:54.000+0000" }, { "id": "421858", "author": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/9137", "updateAuthor": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "created": "2017-06-13T13:11:28.000+0000", "updated": "2017-06-13T13:11:38.000+0000" }, { "id": "421995", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated PR as original branch was deleted: https://github.com/appcelerator/titanium_mobile/pull/9143", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-14T20:03:14.000+0000", "updated": "2017-06-14T20:03:14.000+0000" }, { "id": "422749", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix in SDK Version: 6.2.0.v20170626084207. Test and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/9143", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T17:56:28.000+0000", "updated": "2017-06-26T17:56:28.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }