{ "id": "165012", "key": "TIMOB-24223", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-02-03T16:27:15.000+0000", "created": "2016-12-14T04:22:05.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "eng-priority", "parity" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "53899", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "160149", "key": "TIMOB-23352", "fields": { "summary": "Windows: ScrollView click event always has ScrollView as source, not the actual view clicked on", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-02-09T22:10:55.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": "12642", "name": "Windows", "description": "Windows authoring support" }, { "id": "15101", "name": "Windows phone", "description": "Windows phone platform" } ], "description": "h5. Issue: \r\nWhen wrapping inner views inside an outer view and adding a click event listener in the outer view, the feedback gotten from the click event object in regards to what the source of the click is, is incorrect IN WINDOWS.\r\n\r\nh5. REPRODUCE\r\n1. Create a simple app like attached.\r\n2. Run it on Windows, iOS and Android device.\r\n3. Click on any of the four red squares\r\n\r\nh5. ACTUAL RESULT\r\n See the console output prints _evt.source.id==win, even if you explicitly click within the red areas, whereas in iOS and Android, the console prints _evt.source.id==innerWrapper1, _evt.source.id==innerWrapper2 _evt.source.id==innerWrapper3 and _evt.source.id==innerWrapper4, respectively.\r\n\r\nh5. EXPECT RESULT\r\nIt should work well like it shows output on Android and iOS", "attachment": [ { "id": "61538", "filename": "6.0.1.GA.PNG", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-09T22:04:13.000+0000", "size": 8879, "mimeType": "image/png" }, { "id": "61324", "filename": "6.0.1.PNG", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-25T22:41:22.000+0000", "size": 8996, "mimeType": "image/png" }, { "id": "61325", "filename": "6.1.0.v20170125103400.PNG", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-25T22:41:22.000+0000", "size": 9077, "mimeType": "image/png" }, { "id": "61537", "filename": "6.1.0.v20170209111025.PNG", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-09T22:04:13.000+0000", "size": 9118, "mimeType": "image/png" }, { "id": "61536", "filename": "6.1.0.v20170209111025 n.PNG", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-09T22:04:13.000+0000", "size": 9231, "mimeType": "image/png" }, { "id": "61085", "filename": "index.js", "author": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "created": "2016-12-14T04:21:24.000+0000", "size": 127, "mimeType": "text/javascript" }, { "id": "61086", "filename": "index.tss", "author": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "created": "2016-12-14T04:21:18.000+0000", "size": 358, "mimeType": "application/octet-stream" }, { "id": "61087", "filename": "index.xml", "author": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "created": "2016-12-14T04:21:14.000+0000", "size": 298, "mimeType": "text/xml" }, { "id": "61472", "filename": "Screen Shot 2017-02-07 at 1.58.31 PM.png", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-07T21:59:38.000+0000", "size": 28374, "mimeType": "image/png" } ], "flagged": false, "summary": "Universal Windows App (UWP) not getting the correct source.id", "creator": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "subtasks": [], "reporter": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "environment": "SDK 6.0.0.GA\r\nCLI 6.0.0\r\nStudio 4.8\r\nWindows 10", "closedSprints": [ { "id": 796, "state": "closed", "name": "2017 Sprint 02 SDK", "startDate": "2017-01-15T00:00:41.845Z", "endDate": "2017-01-29T00:00:00.000Z", "completeDate": "2017-01-30T21:10:44.640Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "404273", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce this. I think this is a parity issue, I remember we had similar issue before: TIMOB-23352 ", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-09T09:02:11.000+0000", "updated": "2017-01-09T09:02:11.000+0000" }, { "id": "404511", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/924", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-12T10:23:28.000+0000", "updated": "2017-01-12T10:23:28.000+0000" }, { "id": "405317", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with the test case provided in https://github.com/appcelerator/titanium_mobile_windows/pull/924. Was able to see the correct source.id on the multiple views included in the test case.\r\nBefore:\r\n!6.0.1.PNG|thumbnail!\r\nAfter:\r\n!6.1.0.v20170125103400.PNG|thumbnail!\r\n\r\n*Environment*\r\n{code:java}\r\nLumia 640 LTE (RM-1073) (OS Build 10.0.14393.693)\r\nMobile emulator 10.0.14393.0 1080p 6inch 2gb\r\nOperating System\r\nName = Microsoft Windows 10 Pro\r\nVersion = 10.0.14393\r\nArchitecture = 64bit\r\n# CPUs = 4\r\nMemory = 17034395648\r\n \r\nNode.js\r\nNode.js Version = 4.6.0 \r\nnpm Version = 2.11.3\r\n \r\nTitanium SDK\r\nSDK Version = 6.1.0.v20170125103400\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-25T22:45:49.000+0000", "updated": "2017-01-25T22:45:49.000+0000" }, { "id": "406241", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening this, confirmed that this does not work when {{View}} is nested. Here's a sample code (classic).\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'green',\r\n id: 'win',\r\n layout: 'vertical'\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n backgroundColor: 'white',\r\n width: Ti.UI.FILL, height: Ti.UI.FILL,\r\n id: 'view',\r\n layout: 'vertical'\r\n});\r\n\r\nvar view1 = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n width: 100, height: 100,\r\n id: 'view1'\r\n}),\r\nview2 = Ti.UI.createView({\r\n backgroundColor: 'black',\r\n width: 100, height: 100,\r\n id: 'view2'\r\n}),\r\nview3 = Ti.UI.createView({\r\n backgroundColor: 'blue',\r\n width: 100, height: 100,\r\n id: 'view3'\r\n}),\r\nview4 = Ti.UI.createView({\r\n backgroundColor: 'yellow',\r\n width: 100, height: 100,\r\n id: 'view4'\r\n});\r\n\r\nwin.addEventListener('click', function (e) {\r\n alert(e.source.id);\r\n});\r\n\r\nview.add(view1);\r\nview.add(view2);\r\nview.add(view3);\r\nview.add(view4);\r\nwin.add(view);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-03T04:24:29.000+0000", "updated": "2017-02-03T04:24:29.000+0000" }, { "id": "406242", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/943", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-03T05:03:12.000+0000", "updated": "2017-02-03T05:03:12.000+0000" }, { "id": "406543", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hey [~kota] with the test code provided in https://github.com/appcelerator/titanium_mobile_windows/pull/943 I am still getting no source.id.\r\n\r\n!Screen Shot 2017-02-07 at 1.58.31 PM.png|thumbnail!\r\n\r\n{code:java}\r\n\r\nPhone : Lumia 640 LTE (RM-1073)\r\nOperating System:\r\nName = Microsoft Windows 10 Pro\r\nVersion = 10.0.14393\r\nArchitecture = 32bit\r\n# CPUs = 4\r\nMemory = 17034395648\r\n \r\nNode.js:\r\nNode.js Version = 4.6.0 \r\nnpm Version = 2.15.9\r\n \r\nTitanium SDK:\r\nSDK Version = 6.1.0.v20170206114448{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-07T22:03:33.000+0000", "updated": "2017-02-07T22:03:33.000+0000" }, { "id": "406778", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with the test case provided in the description and with the test case provided in https://github.com/appcelerator/titanium_mobile_windows/pull/943. \r\n\r\nWith the test case provided in https://github.com/appcelerator/titanium_mobile_windows/pull/943 I was able to see the {{source.id}} of a normal {{view}} and a nested {{view}}.\r\n\r\nBefore: (6.0.1.GA)\r\n!6.0.1.GA.PNG|thumbnail!\r\n\r\nAfter: (6.1.0.v20170209111025)\r\n!6.1.0.v20170209111025.PNG|thumbnail! !6.1.0.v20170209111025 n.PNG|thumbnail!\r\n\r\nWith the test case provided in the description I was able to see the following in the console: \r\n{code:java}\r\n[INFO] : _evt.source.id==win\r\n[INFO] : _evt.source.id==innerWrapper2\r\n[INFO] : _evt.source.id==innerWrapper3\r\n[INFO] : _evt.source.id==innerWrapper4\r\n[INFO] : _evt.source.id==outerWrapper\r\n{code}\r\n\r\n*Environment*\r\n{code:java}\r\nWindows Emulator: 10.0.14393\r\nPhone : Lumia 640 LTE (RM-1073)\r\nOperating System:\r\nName = Microsoft Windows 10 Pro\r\nVersion = 10.0.14393\r\nArchitecture = 32bit\r\n# CPUs = 4\r\nMemory = 17034395648\r\n \r\nNode.js:\r\nNode.js Version = 4.6.0 \r\nnpm Version = 2.15.9\r\n \r\nTitanium SDK:\r\nSDK Version = 6.1.0.v20170209111025\r\n{code}\r\n\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-09T22:10:31.000+0000", "updated": "2017-02-09T22:10:31.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }