{ "id": "99699", "key": "TIMOB-10584", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14098", "description": "Sprint 2012-18 API", "name": "Sprint 2012-18 API", "archived": true, "released": true, "releaseDate": "2012-09-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-21T07:16:32.000+0000", "created": "2012-08-23T18:03:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_webview", "parity", "qe-testadded", "regression" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [ { "id": "57744", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "173896", "key": "TIMOB-27254", "fields": { "summary": "[iOS] WebView click event is not being fired", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "20163", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "62649", "key": "TIMOB-2017", "fields": { "summary": "Android: WebView No Longer Fires Click Event", "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 } } } }, { "id": "49721", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "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 } } } }, { "id": "20494", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "100286", "key": "TIDOC-777", "fields": { "summary": "APIDoc: WebView -- statements about touch events are iOS-specific", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-07-18T13:11:22.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": "Webview click event is not being fired when the parent window also has a click event. There is a change of behavior, it works fine in iOS. It used to work for android in Ti SDK 2.0.2.GA\r\nh4. Repo Steps\r\n1. Run the below code in your app.js\r\n2. Tap the \"Click me\" link and click event is not being fired. \r\n{code}\r\nvar window = Titanium.UI.createWindow();\r\n\r\nwindow.addEventListener('click', function(e) {\r\n\tTi.API.info(\"************** e.y = \" + e.y);\r\n if(e.y >= -20 && e.y < 13) {\r\n alert('Clicks on window object, scrolls content to top');\r\n } \r\n})\r\nTitanium.App.addEventListener('openImage', function (e) {\r\n alert('Opening image');\r\n});\r\n\r\nvar webView = Titanium.UI.createWebView();\r\nvar html = '' + \r\n '' +\r\n '
' + \r\n '
' + \r\n '
' + \r\n '
' + \r\n '
' + \r\n '
' + \r\n 'Click me!' +\r\n '' + \r\n '';\r\nwebView.html = html;\r\nwindow.add(webView);\r\nwindow.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: WebView click event is not being fired", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android 2.2\r\nLG Optimus V\r\nTi SDK 2.1.1", "comment": { "comments": [ { "id": "216325", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In the original test case, when we tap the \"click me\" link, the \"click\" event is fired from the window. If we check the log console, we can see the output like:\r\n{code}\r\nI/TiAPI (20559): ************** e.y = 176.55079650878906\r\n{code}\r\nSeems the \"click\" event is bubbled up to the window on Android but it is not bubbled on iOS.\r\nIf you remove the \"click\" event listener from the window, the link will work fine.\r\nBTW, the \"click\" event listener on webview does not work on 2.0.2GA and we fixed that for 2.1.0 (TIMOB-2017). That's why you see the different behaviors.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-27T15:51:08.000+0000", "updated": "2012-08-27T15:51:08.000+0000" }, { "id": "217095", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull request https://github.com/appcelerator/titanium_mobile/pull/2853", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-30T16:53:36.000+0000", "updated": "2012-08-30T16:53:36.000+0000" }, { "id": "217614", "author": { "name": "rumbrasas", "key": "rumbrasas", "displayName": "Rima Umbrasas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested as fixed:\r\nTitanium SDK, version 2.2.0.v20120904103252\r\nTitanium Studio, build: 2.1.2.201208301612\r\nDevices: iPone4 version 5.0.1\r\nNexus Android tablet version 4.1.1", "updateAuthor": { "name": "rumbrasas", "key": "rumbrasas", "displayName": "Rima Umbrasas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-05T10:30:00.000+0000", "updated": "2012-09-05T10:30:00.000+0000" }, { "id": "258951", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening just to update label.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-21T07:15:03.000+0000", "updated": "2013-06-21T07:15:03.000+0000" }, { "id": "258952", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated label and verified.\r\nTested on:\r\nDevice: Nexus 7 tab Android Version 4.1\r\nSDK:3.1.2.v20130619101604\r\nAppcelerator Studio: 3.1.1.201306131423\r\nOS: OSX 10.8\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.2.14\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-21T07:16:32.000+0000", "updated": "2013-06-21T07:16:32.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }