{ "id": "98498", "key": "TIMOB-10319", "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": "2012-08-01T08:57:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-09-11T02:59:18.000+0000", "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" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "In my application i often had the impression that some of my button clicks were not processed.\r\nI finally took the time to investigate the problem.\r\nIt come from the fact that if tap count is 2 then no \"click\" event is ever fired.\r\nOr sometimes when pressing a button, you get 2 touch down events then a touch up event (final, not one of too).\r\nSo in that case you just wont get a click event.\r\n\r\nI think the solution to that would be to use gesture for tap events (like for views ) instead of looking at the touch phase.\r\n\r\nI Think i will go for that implementation, but it still time to propose another implementation :)", "attachment": [], "flagged": false, "summary": "iOS: dblclick event prevent quick click events", "creator": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": "Ti 2.2.0 (master)\r\nios 5.1", "comment": { "comments": [ { "id": "211344", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, \r\nDid you test it on the device or simulator? Its working fine for me on the device.", "updateAuthor": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-02T21:00:11.000+0000", "updated": "2012-08-02T21:00:11.000+0000" }, { "id": "211366", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "Yes i did, and i also get it on device.\r\n\r\nAlso i must add that there is a deep problem with the implementation.\r\nIf you use a button for gaming for exemple when you have to continuously press the button. Then with the implementation you will never get all the click events (which correspond to a tap count superior to 2).", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-08-03T02:30:04.000+0000", "updated": "2012-08-03T02:30:04.000+0000" }, { "id": "213068", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We need a complete test case with the JIRA tickets.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-06T22:42:10.000+0000", "updated": "2012-08-06T22:42:10.000+0000" }, { "id": "213071", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "very simple testcase\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({ fullscreen: true, backgroundColor: 'white'});\r\n \r\nvar nbClicks = 0;\r\nvar nbtouchend = 0;\r\nvar nbsingletap = 0;\r\n//label using localization-ready strings from /i18n/en/strings.xml\r\nvar label = Ti.UI.createLabel({\r\n top:0\r\n});\r\nwin.add(label);\r\n\r\nvar label1 = Ti.UI.createLabel({\r\n top:40\r\n});\r\nwin.add(label1);\r\n\r\nvar label2 = Ti.UI.createLabel({\r\n top:80\r\n});\r\nwin.add(label2);\r\n \r\nvar button = Titanium.UI.createButton({\r\n title:'touch me!',\r\n width:200,\r\n height:40,\r\n bottom:20,\r\n left: 10\r\n});\r\n \r\nbutton.addEventListener('click', function()\r\n{\r\n nbClicks += 1;\r\n label.text = nbClicks + ' clicks';\r\n});\r\n\r\nbutton.addEventListener('touchend', function()\r\n{\r\n nbtouchend += 1;\r\n label1.text = nbtouchend + ' touchend';\r\n});\r\n\r\nbutton.addEventListener('singletap', function()\r\n{\r\n nbsingletap += 1;\r\n label2.text = nbsingletap + ' singletap';\r\n});\r\nwin.add(button);\r\n \r\nwin.open();\r\n{code}", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-08-07T00:34:51.000+0000", "updated": "2012-08-07T00:34:51.000+0000" }, { "id": "220637", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Martin, is there any reason you can't just use the singletap event? The click event is not intended to be fired on double tap, only when you firmly click a button.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-25T16:34:57.000+0000", "updated": "2012-09-25T16:34:57.000+0000" }, { "id": "220856", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-09-26T07:00:43.000+0000", "updated": "2012-09-26T07:00:43.000+0000" }, { "id": "221190", "author": { "name": "swords", "key": "swords", "displayName": "Hilko Lantinga", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'm having the exact same issue. Singletap is a workaround for me as I don't support Android any way. Still it's a bug I'd like to see resolved.", "updateAuthor": { "name": "swords", "key": "swords", "displayName": "Hilko Lantinga", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-09-27T11:21:56.000+0000", "updated": "2012-09-27T11:21:56.000+0000" }, { "id": "221235", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-27T18:54:57.000+0000", "updated": "2012-09-27T18:54:57.000+0000" }, { "id": "221368", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-09-28T15:45:26.000+0000", "updated": "2012-09-28T15:45:26.000+0000" }, { "id": "221420", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I understand what you're saying now, I've re-opened the issue. My apologies for the inconvenience.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-28T19:12:23.000+0000", "updated": "2012-09-28T19:12:23.000+0000" }, { "id": "223763", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "pull request https://github.com/appcelerator/titanium_mobile/pull/3249", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-10-16T11:41:58.000+0000", "updated": "2012-10-16T11:41:58.000+0000" }, { "id": "250488", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "issue reproduces\n\nTested with\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0\niOS iPhone Simulator: iOS SDK version: 6.0\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-07T06:11:46.000+0000", "updated": "2013-05-07T06:11:46.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }