{ "id": "82214", "key": "TIMOB-5954", "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": "12085", "description": "Mobile @ HQ", "name": "Sprint 2011-45", "archived": true, "released": true, "releaseDate": "2011-11-14" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-14T09:55:29.000+0000", "created": "2011-11-01T14:53:05.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "click", "double", "fired", "module_label", "qe-testadded", "regression", "triggered", "view" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "21829", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "102901", "key": "TIMOB-11304", "fields": { "summary": "Android: Label - A label \"Click me\" is not centered inside the yellow view", "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": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-10-08T23:32:24.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\nThe click event is raised for every object on a view. For example if I have a view with a label (custom button). The click event will be raised twice when the user taps the view.\r\n\r\nh4.Regession issue - works fine with mobile SDKs 1.7.4.v20111025165811 & 1.7.3 & 1.7.2\r\n\r\n\r\nh3.Reproducible Steps\r\n1. Run the sample code\r\n2. Click the \"Click me\" label\r\n3. Check the Titanium logs\r\n\r\nh3.Sample Code\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n tabBarHidden:true\r\n});\r\n\r\n\r\nvar vwTest = Ti.UI.createView({\r\n\tbackgroundColor:'yellow',\r\n\theight:250,\r\n\twidth:250\r\n});\r\nwin1.add(vwTest);\r\n\r\n\r\n\r\nvwTest.addEventListener('click', function(){\r\n\tTi.API.info('You should only see this once per click... but');\r\n\tTi.API.info('Click Event Firing');\r\n});\r\n\t\t\r\nvar label1 = Titanium.UI.createLabel({\r\n\ttext:'Click Me',\r\n\tcolor:'#000',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\theight:250,\r\n\twidth:250\r\n});\r\n\r\nvwTest.add(label1);\r\n\r\nwin1.open();\r\n{code}\r\n\r\nh3.Associated HelpDesk Ticket\r\nhttp://appc.me/c/APP-287373", "attachment": [], "flagged": false, "summary": "iOS: click event fired more than once", "creator": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS5, SDK 1.8.0.v201111027152620\r\nREGRESSION (works fine with 1.7.4.v20111025165811 & 1.7.3 & 1.7.2)", "comment": { "comments": [ { "id": "175292", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on Ti Studio 1.0.7.201112061404\r\n
Ti Mob SDK 1.8.0.1.v20111207091653\r\n
OSX Lion\r\niPhone 4S OS 5.0.1\r\n\r\nExpected behavior of only sending single click events is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-07T16:58:27.000+0000", "updated": "2011-12-07T16:58:27.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }