{ "id": "120468", "key": "TIMOB-15347", "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": [], "resolution": null, "resolutiondate": null, "created": "2013-09-26T00:03:44.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-3.2.0", "reprod" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:01.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5. Description:\r\nWhen clicking a button quickly (not \"button mashing\" speed, about 114 clicks per minute) a click event listener on the button will not fire consistently. This can be demonstrated with the code below.\r\n\r\nClicking the button at a slower pace, around 75 clicks a minute will fire the event listener consistently\r\n{code}\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Click event test',\r\n backgroundColor:'#fff',\r\n layout: \"vertical\"\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'Click counter',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto',\r\n\ttop: 50\r\n});\r\n\r\nvar myButton = Ti.UI.createButton({\r\n\ttitle: \"Click Me\",\r\n\ttop: 100\r\n});\r\n\r\nvar count = 0;\r\n\r\nmyButton.addEventListener(\"click\", function(){\r\n\tcount=count+1;\r\n\tlabel1.text=\"The count is now: \"+count;\r\n\t\r\n});\r\n\r\nwin1.add(label1);\r\nwin1.add(myButton);\r\n\r\nwin1.open();\r\n{code}\r\n\r\n\r\nh5. Steps to reproduce:\r\n1) Create a project with the code above\r\n2) Run on iOS device or in simulator\r\n3) Click button at a \"brisk pace\" about 114 clicks per minute\r\n\r\nh5. Result:\r\nclick event listener does not fire\r\n\r\nh5. Expected Result:\r\nevent listener fires consistently.", "attachment": [], "flagged": false, "summary": "iOS7: Button click event listener not firing consistently when button is clicked quickly", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS 10.8.4\r\nXcode 5 GM\r\nCLI: 3.1.2\r\nAlloy: 1.2.2\r\nAppcelerator Studio, build: 3.1.3.201309072408\r\nTitanium SDK version 3.1.3.GA", "comment": { "comments": [ { "id": "272922", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Additional Info: Changing the event listener from \"click\" to \"singletap\" will fire consistently regardless of button tap speed.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-26T00:21:31.000+0000", "updated": "2013-09-26T00:21:31.000+0000" }, { "id": "317695", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\nTitanium Command-Line Interface,\r\n CLI version 3.3.0,\r\n Titanium SDK version 3.3.0.GA\r\n iOS SDK: 7.1\r\n iOS iPhone Simulator: 7.1", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-08T10:43:37.000+0000", "updated": "2014-08-08T10:43:37.000+0000" }, { "id": "422828", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170623141152\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T20:48:03.000+0000", "updated": "2017-06-26T20:48:03.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }