{ "id": "85957", "key": "TIMOB-7547", "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": "12095", "description": "", "name": "Sprint 2012-03", "archived": true, "released": true, "releaseDate": "2012-02-12" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-14T23:29:05.000+0000", "created": "2012-02-03T15:33:46.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_webview", "parity", "qe-testadded" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-14T23:29:05.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. Problem Description\r\nCustomer wants to have a webview as part of the UI in a tablet. That webview will be showing interactive stuff, so you can actually interact with it. That webview is being added on top of a view with attached events. \r\n\r\nh4. Expected Results\r\nBeing able to interact with the webview, even if the parent view has related events. This is, If I'm clicking on the webview, the webview should work as usual, and if I click outside the webview, the parent view should do the \r\n\r\nh4. Actual Results\r\nIn Android, this works just fine. In iOS, the webview is blocked to any activity. \r\n\r\nh4. Test Case\r\n\r\n{code}\r\nvar win=Ti.UI.createWindow();\r\nvar view=Ti.UI.createView();\r\nvar webview=Ti.UI.createWebView({\r\n\turl:'http://google.com',\r\n});\r\n\r\nview.addEventListener('click', function(){\r\n\tTi.API.info('Click!');\r\n});\r\n\r\nview.add(webview);\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\nh4. Extra info \r\nFor the customer would be handy if we can set a way to tell the webview to not pass events to the parent, and continue handling it's own events. ", "attachment": [], "flagged": false, "summary": "iOS: Webview should be able to handle events even if the parent view defines some events as well (Parity issue)", "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: 1.9CI\r\nPlatform & version: iOS 5.0/4.3 \r\nDevice Details: iOS simulator, ipad simulator \r\nHost Operating System: OSX Lion \r\nTitanium Studio version: 1.0.8", "comment": { "comments": [ { "id": "182066", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Use this code to test\r\n{code}\r\nvar win=Ti.UI.createWindow();\r\nvar view=Ti.UI.createView();\r\nvar webview=Ti.UI.createWebView({\r\n\turl:'http://google.com',\r\n\theight:\"50%\"\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttitle: \"Toggle Touches\",\r\n\twidth: \"100%\",\r\n\theight: 30,\r\n\tbottom: 0,\r\n\tleft: 0\r\n});\r\n\r\nbtn.addEventListener(\"click\",function(e){\r\n\tTi.API.info(webview.willHandleTouches+\" \"+webview.getWillHandleTouches())\r\n\tvar current = webview.willHandleTouches;\r\n\t\r\n\tif(current === true)\r\n\t{\r\n\t\twebview.willHandleTouches = false;\r\n\t}\r\n\telse\r\n\t{\r\n\t\twebview.setWillHandleTouches(true);\r\n\t}\r\n});\r\n\r\n\r\n\r\nview.addEventListener('click', function(e){\r\n\t\r\n\tif(e.source == webview)\r\n\t{\r\n\t\tTi.API.info(\"Source is WebView\");\r\n\t}\r\n\tif(e.source == view)\r\n\t{\r\n\t\tTi.API.info(\"Source is View\");\r\n\t}\r\n\tif(e.source == btn)\r\n\t{\r\n\t\tTi.API.info(\"Source is Button\");\r\n\t}\r\n\tTi.API.info('View Got Click!');\r\n});\r\n\r\n\r\nview.add(webview);\r\nview.add(btn);\r\nwin.add(view);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-06T12:18:41.000+0000", "updated": "2012-02-06T12:18:41.000+0000" }, { "id": "182284", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 1.9.0.v20120207000134\r\nTitanium Studio, build: 1.0.8.201201262211\r\nxcode: 4.2\r\nDevices: iPhone 4S Sprint (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-07T15:04:39.000+0000", "updated": "2012-02-07T15:04:39.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }