{ "id": "169744", "key": "TIMOB-25261", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-09-14T02:04:34.000+0000", "created": "2017-09-11T11:03:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "regression" ], "versions": [ { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" }, { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-09-15T12:32:49.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" } ], "description": "h5.Description\r\n\r\nChild view elements (Ti.UI.View) are not passed down click and touch events, other elements like label and button are\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'green',\r\n layout: 'vertical'\r\n});\r\n\r\nvar view2 = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n width: '40%', height: '40%',\r\n id: 'view2'\r\n});\r\nview2.addEventListener('click', function (e) {\r\n console.log(e.source.id);\r\n});\r\nwin.add(view2);\r\n\r\nvar btn = Ti.UI.createButton({title: 'I AM BUTTON'});\r\nbtn.addEventListener('click', function(e) {\r\n\tconsole.log('YOU CLICKED THE BUTTON')\r\n});\r\nwin.add(btn);\r\n\r\nvar lbl = Ti.UI.createLabel({text: 'I AM LABEL'});\r\nlbl.addEventListener('click', function(e) {\r\n\tconsole.log('YOU CLICKED THE LABEL')\r\n});\r\nwin.add(lbl)\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the above to an existing app.js and build for Windows\r\n# Tap the button\r\n# Tap the label\r\n# Tap the view\r\n\r\nh5.Actual\r\n\r\nclick event fires for label and button but not for view\r\n\r\nh5.Expected\r\n\r\n\r\nclick event should fire for all", "attachment": [], "flagged": false, "summary": "Windows: Click and touch events not being passed down to child view", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "closedSprints": [ { "id": 948, "state": "closed", "name": "2017 Sprint 19 SDK", "startDate": "2017-09-10T21:24:51.562Z", "endDate": "2017-09-24T21:24:00.000Z", "completeDate": "2017-09-25T17:49:27.460Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "427754", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Rolling back through the SDKs to try and figure out when this broke, so far I'm at the below\r\n\r\n6.2.0.v20170405172414 <- works\r\n\r\n6.2.0.v20170501120123 <- works\r\n\r\n6.2.0.v20170603145912 <- works \r\n\r\n6.2.0.v20170705074041 <- broken\r\n\r\n6.2.0.v20170720201231 <- broken", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-09-11T12:19:18.000+0000", "updated": "2017-09-11T12:46:12.000+0000" }, { "id": "427755", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Reverted https://github.com/appcelerator/titanium_mobile_windows/pull/1018 and built manually and the code works fine", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-09-11T12:58:32.000+0000", "updated": "2017-09-11T12:58:32.000+0000" }, { "id": "427757", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~eharris] Thanks for the information! That really helps (y) \r\nI'm now rolling back the commits and it seems something around mid June.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-11T13:58:59.000+0000", "updated": "2017-09-11T13:58:59.000+0000" }, { "id": "427784", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "So it tuns out [this commit|https://github.com/appcelerator/titanium_mobile_windows/commit/45e68d005da340e58793482876f13f21f504756f] introduces the issue. This prevents {{Canvas::Tapped}} from working but I don't understand why. Investigating... ", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-12T06:11:32.000+0000", "updated": "2017-09-12T06:11:32.000+0000" }, { "id": "427805", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Reverted PR here https://github.com/appcelerator/titanium_mobile_windows/pull/1100\r\n", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-09-12T16:00:55.000+0000", "updated": "2017-09-12T16:00:55.000+0000" }, { "id": "427811", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/1102\r\n6_2_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1103", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-12T16:57:33.000+0000", "updated": "2017-09-12T16:57:33.000+0000" }, { "id": "427893", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified in 6.2.0.GA and 7.0.0.v20170912234515", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-09-14T16:38:52.000+0000", "updated": "2017-09-14T16:38:52.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }