{ "id": "92901", "key": "TIMOB-9422", "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": "13400", "description": "Sprint 2012-12 Mobile Web", "name": "Sprint 2012-12 MW", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-15T13:09:54.000+0000", "created": "2012-06-06T11:45:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-06-26T14:17:24.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "h4. Problem Description\r\nAs per the attached sample, once the red row is clicked, touchenable of the tableview is set to false. This property has to reset to true on focus of the window. This works fine on iphone, but the tv.touchEnabled = true never happens on mobileweb.\r\n\r\nh4. Actual Results\r\nThis is not working fine in mobileweb (the tableview is never touchable again)\r\n\r\nh4. Expected results\r\nWorking just fine, as in iOS.\r\n\r\nh4. TestCase\r\n1. Create mobile project.\r\n2. Add this to app.js\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({backgroundColor:'#e7e7e7'});\r\nvar data=[];\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n}); \r\nvar win2 = Titanium.UI.createWindow({backgroundColor:'#000'}); \r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 2',\r\n window:win2\r\n}); \r\nvar row1 = Titanium.UI.createTableViewRow({\r\n height : 70,\r\n backgroundColor : 'red',\r\n childWin:'Row1'\r\n });\r\ndata.push(row1);\r\n var row2 = Titanium.UI.createTableViewRow({\r\n height : 70,\r\n backgroundColor : 'blue',\r\n childWin:'Row2'\r\n });\r\ndata.push(row2);\r\n \r\n \r\nvar tv = Ti.UI.createTableView({\r\n data:data\r\n});\r\ntv.addEventListener('click',function(e){\r\n\tif(e.row.childWin === 'Row1'){\r\n\t\ttv.touchEnabled = false;\r\n\t\talert('row1 is clicked')\r\n\t}\r\n});\r\n \r\n win1.addEventListener('focus',function(e){\r\n \tTi.API.debug('focus fired')\r\n \ttv.touchEnabled = true;\r\n })\r\nwin1.add(tv);\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\ntabGroup.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "MobileWeb: Tableview.touchEnabled is not working on mobileweb", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version: 2.1.0.v20120606105255.9f0f0ba\r\nPlatform & version: Mobile Web, Chrome, Mac OSX \r\nDevice Details: Mobile Web, Chrome, Mac OSX \r\nHost Operating System: OSX 10.7.3 \r\nTitanium Studio version: 2.0.2", "comment": { "comments": [ { "id": "198591", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2402", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-14T16:20:23.000+0000", "updated": "2012-06-14T16:20:23.000+0000" }, { "id": "200398", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue on the environment below & found it to be nor reproducible.when reset on focus of the window tv.touchEnabled = true is now happening on mobileweb.\r\n\r\nTitanium Studio : 2.1.0.201206251749\r\nSDK version : 2.1.0.v20120626104306\r\nChrome : 19.0.1084.56", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-26T14:17:24.000+0000", "updated": "2012-06-26T14:17:24.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }