{ "id": "166642", "key": "TIMOB-24491", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-03-23T11:59:12.000+0000", "created": "2017-03-16T16:23:04.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [ { "id": "54625", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "152916", "key": "TIMOB-19924", "fields": { "summary": "iOS: \"onclick\" event is not triggered in the WebView if you are listening to multiple \"click\" events", "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 } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-31T22:50: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": [], "description": "*Expected behaviour:* The webview should display a vertical scrollbar and let the user scroll through the content\r\n\r\n*Current behavior:* No scroll bar is show and its not possible to scroll the webview. \r\n\r\nBut if you remove this from the xml: \r\n\r\nonClick=\"ClickView\"\r\n\r\nThe scroll bar will appear on the webview and everything will function normally\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n\r\n{code:txt}\r\n\"#View\": {\r\n\tlayout: \"vertical\",\r\n\twidth: \"100%\",\r\n\theight: \"100%\"\r\n}\r\n\r\n\"#WebView\": {\r\n\twidth : '300dp',\r\n\theight: '300dp',\r\n\turl: '/test.html'\r\n}\r\n{code}\r\n\r\n\r\n{code:javascript}\r\nsetTimeout(function() {\r\n\tTi.App.fireEvent('setcontent', { content: randomString(2000) } );\r\n}, 3000);\r\n\r\nfunction ClickView() {\r\n\r\n}\r\n\r\n$.Window.open();\r\n\r\nfunction randomString(len, charSet) {\r\n charSet = charSet || 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ';\r\n var randomString = '';\r\n for (var i = 0; i < len; i++) {\r\n var randomPoz = Math.floor(Math.random() * charSet.length);\r\n randomString += charSet.substring(randomPoz,randomPoz+1);\r\n }\r\n return randomString;\r\n}\r\n{code}\r\n\r\n\r\n{code:html}\r\n\r\n\r\n\r\n title\r\n \r\n \r\n \r\n\r\n\r\n\t
\r\n\t\r\n\r\n\r\n{code}", "attachment": [ { "id": "61899", "filename": "test.html", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T08:58:06.000+0000", "size": 931, "mimeType": "text/html" } ], "flagged": false, "summary": "iOS: Webview scroll doesn't work inside a view with \"onClick\" in the xml", "creator": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Xcode 7.2\r\niOS SDK 9.2\r\niPhone 6s Plus\r\nTitanium SDK 5.5.1.GA\r\nAlloy 1.9.0", "comment": { "comments": [ { "id": "412800", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "I can verify the issue for iOS. Webview scroll doesn't show if it's, inside a view with a click event. [~hansknoechel], any thoughts. This seems to be a bug. Or am I missing something?", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-03-16T18:38:09.000+0000", "updated": "2017-03-16T18:38:09.000+0000" }, { "id": "415259", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Simple app for debugging -\r\n\r\n\r\n{code:java}\r\nvar window = Titanium.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\nwindow.addEventListener('click', function(e) {\r\n alert('Window clicked');\r\n});\r\n \r\nvar webView = Titanium.UI.createWebView({\r\n url:'/test.html'\r\n});\r\nwebView.addEventListener('click', function(e) {\r\n alert('WebView Clicked');\r\n});\r\n \r\n\r\nsetTimeout(function() {\r\n Ti.App.fireEvent('setcontent', { content: randomString(2000) } );\r\n}, 3000);\r\n \r\n \r\nfunction randomString(len, charSet) {\r\n charSet = charSet || 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ';\r\n var randomString = '';\r\n for (var i = 0; i < len; i++) {\r\n var randomPoz = Math.floor(Math.random() * charSet.length);\r\n randomString += charSet.substring(randomPoz,randomPoz+1);\r\n }\r\n return randomString;\r\n}\r\n \r\nwindow.add(webView);\r\nwindow.open();\r\n{code}", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T08:56:46.000+0000", "updated": "2017-03-23T08:56:46.000+0000" }, { "id": "415262", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The cause of this issue is same as that of TIMOB-19924. When we try to scroll hitTest method of TIUIWebView called.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T09:38:04.000+0000", "updated": "2017-03-23T09:38:04.000+0000" }, { "id": "416622", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate, the relevant ticket is linked above.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T22:50:00.000+0000", "updated": "2017-03-31T22:50:00.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }