{ "id": "88027", "key": "TIMOB-8038", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-19T22:29:12.000+0000", "created": "2012-03-15T12:55:27.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-mw020912", "qe-port" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-15T16:03:31.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "Steps to reproduce\r\n\r\n1. Create a default mobile web app and change the app.js code to the following\r\n{code}\r\n\t\tvar _window = Titanium.UI.createWindow({\r\n\t\t\ttitle : 'test',\r\n\t\t\tbackgroundColor : 'white'\r\n\t\t});\r\n\r\n\r\nfunction parentEventHandler(e) {\r\n\t\t\talert('parent received ' + e.type.toUpperCase() + ' event. Source: ' + e.source.id);\r\n\t\t}\r\n\r\n\t\tvar sampleParentView = Ti.UI.createView({\r\n\t\t\tbottom : 0,\r\n\t\t\twidth : 100,\r\n\t\t\theight : 100,\r\n\t\t\tbackgroundColor : 'yellow',\r\n\t\t\tid : 'parent'\r\n\t\t});\r\n\r\n\t\tvar sampleChildView = Ti.UI.createView({\r\n\t\t\twidth : 50,\r\n\t\t\theight : 50,\r\n\t\t\tbackgroundColor : 'red',\r\n\t\t\tid : 'child'\r\n\t\t});\r\n\r\n\t\tsampleParentView.addEventListener('touchstart', parentEventHandler);\r\n sampleParentView.add(sampleChildView);\r\n \r\n _window.add(sampleParentView);\r\n_window.open();\r\n{code}\r\n\r\n2. Run app\r\n3. Touch the red square\r\n\r\nActual result:\r\nThe alert is displayed with \"parent received TOUCHSTART event. Source parent\"\r\n\r\nExpected result:\r\nThe alert is displayed with \"parent received TOUCHSTART event. Source child\"\r\n*Note the linked ticket\"", "attachment": [], "flagged": false, "summary": "MobileWeb: View - Touch events of a child view are being reported as touches for the parent", "creator": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Ti Studio build 2.0.0.201203132050\r\nTi Mob SDK 2.0.0.v20120315091738 hash rec1c5584\r\nOSX Lion 10.7.3\r\niPad 1 OS 4.3.5, Galaxy Tab 10.1 OS 3.0", "comment": { "comments": [ { "id": "187065", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FYI the linked ticket was not related. We listen to touch events on all nodes, whether or not an event listener is attached.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-19T09:19:58.000+0000", "updated": "2012-03-19T09:20:29.000+0000" }, { "id": "187160", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1745", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-19T13:14:04.000+0000", "updated": "2012-03-19T13:14:04.000+0000" }, { "id": "187312", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1758", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-19T22:26:48.000+0000", "updated": "2012-03-19T22:26:48.000+0000" }, { "id": "214690", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fix on:\r\nTitanium studio : 2.1.1.201207271312\r\nSDK version : 2.2.0.v20120814134112\r\nAndroid 4.0.4 - default ,chrome 18.0 , firefox 14.0.1\r\nIphone 5.1.1 - safari mobile\r\nMountain lion(10.8) - chrome 21.0,safari 6,firefox 14.0.1", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-15T16:03:31.000+0000", "updated": "2012-08-15T16:03:31.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }