{ "id": "103474", "key": "TIMOB-11841", "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": "2013-03-18T14:20:16.000+0000", "created": "2012-10-16T11:14:14.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "exalture", "triage" ], "versions": [ { "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" } ], "issuelinks": [ { "id": "23888", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "103471", "key": "TIMOB-13055", "fields": { "summary": "Android: tableview events: missing \"row\" property", "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": "23105", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "103862", "key": "TIMOB-11856", "fields": { "summary": "Android: touchEnabled false on child view causes longpress event to fire when 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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "23072", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "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 } } } } ], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-22T21:50:17.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": "*Actual behavior*\r\nThe event data for 'longclick' is not filled, it returns nothing {} (see logs).\r\n\r\n*Expected behavior*\r\nThe event data should return values like x, y etc.\r\n\r\n*Test case*\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nwin.backgroundColor = 'white';\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor:'red',\r\n\twidth:200,\r\n\theight:200\r\n})\r\n\r\nview.addEventListener('longclick', function(e){\r\n\tTi.API.info(JSON.stringify(e))\r\n})\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n*Log*\r\n{code}\r\n[INFO][TiAPI ( 448)] {\"type\":\"longclick\",\"source\":{\"children\":[],\"width\":200,\"keepScreenOn\":false,\"height\":200,\"backgroundRepeat\":false,\"backgroundColor\":\"red\",\"rect\":{\"height\":200,\"y\":289,\"x\":140,\"width\":200},\"bubbleParent\":true,\"size\":{\"height\":200,\"y\":0,\"width\":200,\"x\":0},\"_events\":{\"longclick\":{}}},\"bubbles\":true,\"cancelBubble\":false}\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: 'longclick' event data not filled (x, y ...)", "creator": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": "Titanium 3.1.0 master\r\nAndroid 4.0.3\r\n", "comment": { "comments": [ { "id": "223761", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "pul request https://github.com/appcelerator/titanium_mobile/pull/3247", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-10-16T11:36:38.000+0000", "updated": "2012-10-16T11:36:38.000+0000" }, { "id": "228129", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Samsung Galaxy S2 2.3.6 device and Android emulator 2.3.3 on both 2.1.4 GA and latest 3.0.0 build.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-21T01:46:58.000+0000", "updated": "2012-11-21T01:46:58.000+0000" }, { "id": "231020", "author": { "name": "fidojones", "key": "fidojones", "displayName": "Lorenzo", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same problem here, Galaxy Nexus android 4.2 latest 3.0.0 beta2 e.row.id is undefined on longclick.", "updateAuthor": { "name": "fidojones", "key": "fidojones", "displayName": "Lorenzo", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-12T09:39:36.000+0000", "updated": "2012-12-12T09:39:36.000+0000" }, { "id": "238408", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Can you please give us an ETA?", "updateAuthor": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-02-13T21:16:59.000+0000", "updated": "2013-02-13T21:16:59.000+0000" }, { "id": "242663", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "As per the documentation longClick event doesn't have x and y. Here is the description from documentation\r\n\"As the trackball can fire this event, it is not intended to return the x and y coordinates of the touch, even when it is generated by the touchscreen.\"", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-18T14:20:16.000+0000", "updated": "2013-03-18T14:20:16.000+0000" }, { "id": "242670", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "not the kind of answer you would expect!\r\nIf thats your choice, will still keep it in my branch as IT IS very useful", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2013-03-18T15:25:57.000+0000", "updated": "2013-03-18T15:25:57.000+0000" }, { "id": "415048", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:50:17.000+0000", "updated": "2017-03-22T21:50:17.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }