{ "id": "134453", "key": "AC-1259", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-08-26T05:44:16.000+0000", "created": "2014-08-09T09:53:36.000+0000", "labels": [ "TCSupportTriage", "eventlistener", "swipe", "webView" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:39.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h5. Problem:\r\nWhen I combine a webview and a EventListener \"swipe\", the webview is shown, but does not react at all.\r\n\r\nh5. Solution:\r\nRemoving the EventListener it works fine.\r\nh5. Test Environments\r\nMac 10.9.4\r\nTitanium Studio, build: 3.3.0.201407100905\r\nSDK 3.2.0 / 3.3.0 \r\niOS 7\r\n\r\nh5 Example code:\r\n{code}\r\nvar wb = Ti.UI.createWebView({\r\n\ttop:5,\r\n\tbottom:5,\r\n\tleft:5,\r\n\tright:5,\r\n\twidth:\"auto\",\r\n\theight:\"auto\",\r\n\turl: \"http:/mobil.spiegel.de\",\r\n\tscalesPageToFit: false\r\n});\r\nwin.add(wb);\r\n\r\nwin.addEventListener('swipe', function(e) {\r\n\tif (e.direction == 'right'){\r\n\t\tTi.UI.currentWindow.close();\r\n\t}\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "Webview and EventListener swipe does not work", "creator": { "name": "nascado", "key": "nascado", "displayName": "Marco Huppertz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nascado", "key": "nascado", "displayName": "Marco Huppertz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac 10.9.4\r\nTitanium Studio, build: 3.3.0.201407100905\r\nSDK 3.2.0 / 3.3.0 \r\niOS 7.1\r\n", "comment": { "comments": [ { "id": "317918", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "\r\nHello \r\n\r\nWe tested this issue with the following test code in latest Ti SDK. We can not reproduce this issue. \r\n\r\nh4. Test Environments \r\nMac OS X \r\nTi CLI 3.3.0\r\nTi SDK 3.3.0.GA\r\nIOS Simulator 7.1\r\n\r\nh4. Test Code \r\n\r\napp.js \r\n{code}\r\n\r\nvar win = Titanium.UI.createWindow();\r\n\r\nvar wb = Ti.UI.createWebView({\r\n\ttop : 5,\r\n\tbottom : 5,\r\n\tleft : 5,\r\n\tright : 5,\r\n\twidth : \"auto\",\r\n\theight : \"auto\",\r\n\turl : \"http:/mobil.spiegel.de\",\r\n\tscalesPageToFit : false\r\n});\r\nwin.add(wb);\r\n\r\nwin.addEventListener('swipe', function(e) {\r\n\tif (e.direction == 'right') {\r\n\t\t alert(e.direction);\r\n\t}\r\n}); \r\nwin.open();\r\n{code}\r\n\r\nh4. Step to Test \r\n- Create Ti project \r\n- Add above code in app.js file \r\n- Run Ti project \r\n- Swipe right direction its display alert message \r\n\r\n \r\n\r\nThanks\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-11T06:57:55.000+0000", "updated": "2014-08-26T05:43:47.000+0000" }, { "id": "320292", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Please check our testcase and let us know if is still failing for you. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-26T05:44:16.000+0000", "updated": "2014-08-26T05:44:16.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }