{ "id": "83705", "key": "TIMOB-6601", "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": "12091", "description": "", "name": "Sprint 2011-51", "archived": true, "released": true, "releaseDate": "2011-12-26" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-23T17:00:53.000+0000", "created": "2011-12-13T06:51:40.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_window", "parity", "qe-testadded" ], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "16509", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "87328", "key": "TIMOB-8486", "fields": { "summary": "iOS: VideoPlayer does not fire touch events since 1.8.1", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:30.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h3. Problem\r\n\r\nTouchstart event is being listening for two views.\r\n\r\nThe customer is listening the touchstart event of the parent view, but when he press the child view he got the touch event of the parent view, and child view.\r\n\r\nh3. Reproducible steps:\r\n \r\n1. Run the code below\r\n2. Click on the child view ( red square )\r\n\r\nAfter pressing the child view ( red square ) you get the following outputs:\r\n\r\n[INFO] parent received TOUCHSTART event. Source: child\r\n[INFO] parent received TOUCHSTART event. Source: parent\r\n\r\nh3. Expected behavior:\r\n\r\nThe client wants to get the following output when he press the red button.\r\n\r\n[INFO] parent received TOUCHSTART event. Source: child\r\n\r\nh3. Tested with the next specs:\r\n\r\niPhone 3G Version: 4.3.5\r\niPAD 2 Version: 5\r\nSimulator\r\n\r\nTitanium Studio, build: 1.0.7.201112080131\r\nTitanium SDK: 1.8.0.1.RC1, 1.8.0.1.v20111205164258 & 1.7.5\r\n\r\nh3.More info:\r\n\r\nWith 1.7.5 Titanium SDK you get the correct expected behavior.\r\n\r\nh3. Sample code:\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n backgroundColor:'#C08040',\r\n id: 'win'\r\n});\r\n\r\nfunction parentEventHandler(e) {\r\n\tTi.API.info('parent received ' + e.type.toUpperCase() + ' event. Source: ' + e.source.id);\t\r\n}\r\n\r\nvar sampleParentView = Ti.UI.createView({\r\n\tbottom: 0, width: 100, height: 100, backgroundColor: 'yellow',\r\n\tid: 'parent'\r\n});\r\n\r\nvar sampleChildView = Ti.UI.createView({\r\n\twidth: 50, height: 50, backgroundColor: 'red',\r\n\tid: 'child'\r\n});\r\n\r\n//sampleParentView.addEventListener('click', parentEventHandler);\r\nsampleParentView.addEventListener('touchstart', parentEventHandler);\r\n\r\nsampleParentView.add(sampleChildView);\r\nwin.add(sampleParentView);\r\n\r\nwin.open();\r\n{code} \r\n\r\n\r\nh3.Log Console:\r\n\r\n{code: title=1.8.0.1.v20111205164258 Titanium CI Build & iOS 5 SDK}\r\n\r\n[INFO] One moment, building ...\r\n[INFO] Titanium SDK version: 1.8.0.1 (12/05/11 16:42 d54627f...)\r\n[INFO] iPhone Device family: universal\r\n[INFO] iPhone SDK version: 5.0\r\n[INFO] iPhone simulated device: iphone\r\n[INFO] Launching application in Simulator\r\n[INFO] Launched application in Simulator (4.73 seconds)\r\n[INFO] Found 5.0 patch installed\r\n[INFO] Application started\r\n[INFO] i13392/1.0 (1.8.0.1.v20111205164258.d54627f...)\r\n[INFO] parent received TOUCHSTART event. Source: child\r\n[INFO] parent received TOUCHSTART event. Source: parent\r\n{code}\r\n\r\n{code: title=1.8.0.1.RC1 Titanium SDK & iOS 5 SDK}\r\n\r\n[INFO] One moment, building ...\r\n[INFO] Titanium SDK version: 1.8.0.1 (12/09/11 16:48 531977c)\r\n[INFO] iPhone Device family: universal\r\n[INFO] iPhone SDK version: 5.0\r\n[INFO] iPhone simulated device: iphone\r\n[INFO] Performing full rebuild. This will take a little bit. Hold tight...\r\n[INFO] Skipping JS compile, running from simulator\r\n[INFO] Performing clean build\r\n[INFO] Launching application in Simulator\r\n[INFO] Launched application in Simulator (50.00 seconds)\r\n[INFO] Found 5.0 patch installed\r\n[INFO] Application started\r\n[INFO] i13392/1.0 (1.8.0.1.RC1.531977c)\r\n[INFO] parent received TOUCHSTART event. Source: child\r\n[INFO] parent received TOUCHSTART event. Source: parent\r\n{code}\r\n\r\n{code: title=1.7.5 Titanium SDK & iOS 5 SDK}\r\n\r\n\r\n[INFO] Titanium SDK version: 1.7.5\r\n[INFO] iPhone Device family: universal\r\n[INFO] iPhone SDK version: 5.0\r\n[INFO] iPhone simulated device: iphone\r\n[INFO] Performing full rebuild. This will take a little bit. Hold tight...\r\n[INFO] Skipping JS compile, running from simulator\r\n[INFO] Performing clean build\r\n[INFO] Launching application in Simulator\r\n[INFO] Launched application in Simulator (70.61 seconds)\r\n[INFO] Found 5.0 patch installed\r\n[INFO] Application started\r\n[INFO] i13392/1.0 (1.7.5.ab20af7)\r\n[INFO] parent received TOUCHSTART event. Source: child\r\n{code}\r\n\r\nh3. Helpdesk\r\nAPP-796571 \r\n", "attachment": [], "flagged": false, "summary": "iOS: Touchstart event is not being listening on the right view.", "creator": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iPhone 3G Version: 4.3.5\r\niPAD 2 Version: 5\r\nSimulator\r\n\r\nTitanium Studio, build: 1.0.7.201112052104\r\nTitanium SDK: 1.8.0.v20111114103905 , 1.8.0.1.v20111205164258 & 1.7.5\r\n", "comment": { "comments": [ { "id": "176789", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not resolving until merged to 1.8.1.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-20T17:10:49.000+0000", "updated": "2011-12-20T17:10:49.000+0000" }, { "id": "179138", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.9.0.v20120112104633 with iPod 4.3.3", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-12T16:52:34.000+0000", "updated": "2012-01-12T16:52:34.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }