{ "id": "86315", "key": "TIMOB-8326", "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": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-13T18:12:52.000+0000", "created": "2012-02-10T07:39:52.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_tableview", "parity", "qe-testadded", "regression" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-11T10:18:00.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": "h2.Problem\r\nTableView does not respond to touch events (touchstart, touchmove, touchend, touchcancel). This is a regression, as this worked fine in 1.7.5 and the 1.8.0.v... continuous build from September. This also works fine in iOS. Only Android is affected.\r\n\r\nh2.Test Case\r\n# drop the following app.js code into a new project\r\n# build with SDK 1.8.1\r\n# run on the Android 2.2 emulator\r\n# press and hold any row. *No touchstart event occurs.*\r\n# while still holding the row, move the mouse around a little. *No touchmove event occurs.*\r\n# let go of the row. *No touchend event occurs.*\r\n\r\n{code:title=app.js}\r\nvar win1=Ti.UI.createWindow({\r\n backgroundColor:'#fff',\r\n exitOnClose:true,\r\n layout:'vertical',\r\n navBarHidden:false,\r\n backgroundColor:'black'\r\n });\r\n\r\nvar TopLabel=Ti.UI.createLabel({text:'Last row will only be half visible when scrolled',\r\n color:'black',\r\n left:0,\r\n right:0,\r\n height:25,\r\n backgroundColor:'yellow'});\r\n\r\nwin1.add(TopLabel);\r\n\r\nvar MyListbox=Ti.UI.createTableView({backgroundColor:'black'});\r\n\r\nfor (var i=1; (i <= 10); i++)\r\n MyListbox.appendRow(Ti.UI.createTableViewRow({title:'Row '+i}));\r\n\r\nTi.API.info('adding EventListener for touchstart');\r\nMyListbox.addEventListener('touchstart',TchStart);\r\nfunction TchStart(evt)\r\n{\r\n Ti.API.info('TchStart');\r\n}\r\n\r\nTi.API.info('adding EventListener for touchmove');\r\nMyListbox.addEventListener('touchmove',TchMove);\r\nfunction TchMove(evt)\r\n{\r\n Ti.API.info('TchMove');\r\n}\r\n\r\nTi.API.info('adding EventListener for touchend');\r\nMyListbox.addEventListener('touchend',TchEnd);\r\nfunction TchEnd(evt)\r\n{\r\n Ti.API.info('TchEnd');\r\n}\r\n\r\nTi.API.info('adding EventListener for touchcancel');\r\nMyListbox.addEventListener('touchcancel',TchCancel);\r\nfunction TchCancel(evt)\r\n{\r\n Ti.API.info('TchCancel');\r\n}\r\n\r\nTi.API.info('adding EventListener for click');\r\nMyListbox.addEventListener('click',LBClick);\r\nfunction LBClick(evt)\r\n{\r\n Ti.API.info('LBClick');\r\n}\r\n\r\nwin1.add(MyListbox);\r\nwin1.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Regression: TableView no longer responds to touch events (touchstart, touchmove, touchend, touchcancel)", "creator": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "environment": "- Titanium Mobile SDK 1.8.1\r\n- Android 2.2 emulator\r\n- Windows 7\r\n- Titanium Studio 1.0.8.201201262211\r\n", "comment": { "comments": [ { "id": "188788", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "With SDK 2.0.0.v20120325213306, same results. However, if you add a 'longclick' listener, then when you hold down a row you get a full screen of this error repeating:\r\n{code}\r\n!!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!!\r\n{code}\r\n\r\n\r\nin the console. And 'longclick' fires whether you continue holding down the row or just hold it down for a little longer than normal. This doesn't really give a good way to handle what is really a 'longpress' (but 'longpress' doesn't fire for Android.\r\n", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-27T07:39:48.000+0000", "updated": "2012-03-27T07:39:48.000+0000" }, { "id": "188861", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "I can confirm that this bug exists and needs to be addressed asap. Tested on a HTC Sensation running Android 2.3.x. \r\nI wasn't able to get the issue with the 'long press' in the latest CI build, however I could reproduce all the issues in the original description.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-03-27T10:48:59.000+0000", "updated": "2012-03-27T10:48:59.000+0000" }, { "id": "188865", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "To be clear, I mean I'm unable to reproduce the 'full screen error' that Shawn is getting. \r\nHowever I'm able to confirm that I don't see any longpress events get fired at all. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-03-27T10:58:17.000+0000", "updated": "2012-03-27T10:58:17.000+0000" }, { "id": "189609", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "HD ticket: http://support.appcelerator.com/tickets/APP-293867\r\n", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-03T05:33:49.000+0000", "updated": "2012-04-03T05:33:49.000+0000" }, { "id": "190771", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Submitted [PR #1990|https://github.com/appcelerator/titanium_mobile/pull/1990] to resolve issue.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-12T12:48:40.000+0000", "updated": "2012-04-12T12:48:40.000+0000" }, { "id": "191326", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Verified fixed in SDK 2.1.0.v20120416160358. Thanks!\r\n", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-17T06:56:35.000+0000", "updated": "2012-04-17T06:56:35.000+0000" }, { "id": "199161", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified touchstart, move, end and cancel work as expected with SDK 2.1.0.v20120618154152.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-19T13:15:59.000+0000", "updated": "2012-06-19T13:15:59.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }