{ "id": "105406", "key": "TIMOB-11845", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15272", "description": "2013 Sprint 04 API", "name": "2013 Sprint 04 API", "archived": true, "released": true, "releaseDate": "2013-02-25" }, { "id": "14814", "description": "2013 Sprint 04", "name": "2013 Sprint 04", "archived": true, "released": true, "releaseDate": "2013-02-25" }, { "id": "15396", "description": "2013 Sprint 07 Core", "name": "2013 Sprint 07 Core", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-30T00:41:56.000+0000", "created": "2012-11-21T16:03:54.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "exalture", "module_map", "parity", "qe-testadded", "triage" ], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "23072", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "103474", "key": "TIMOB-11841", "fields": { "summary": "Android: 'longclick' event data not filled (x, y ...)", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "25955", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "109922", "key": "TIDOC-1037", "fields": { "summary": "APIDoc: iOS MapView supports longpress event", "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 } } } }, { "id": "23104", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "103862", "key": "TIMOB-11856", "fields": { "summary": "Android: touchEnabled false on child view causes longpress event to fire when clicked", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-03-30T18:33:05.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Actual Result*\r\nNo results. The event is only fired the first time you touch the screen when window is opened. It states in version 1.8.0.1 this feature was available. But in version 2.1.3, 2.1.4 and the new 3.0 SDK this feature is not available. \r\n\r\n*Expected Result*\r\nBeing able to detect longpress event on a mapview and return the appropriate parameters.\r\n\r\n*Notes*\r\nWhen you run this on a iOS device it works.\r\n\r\n*Test case*\r\n{code}\r\nvar mapView = Ti.Map.createView({\r\n\tmapType : Ti.Map.STANDARD_TYPE,\r\n\tanimate : true,\r\n\tregionFit : true,\r\n\tregion : {\r\n\t\tlatitudeDelta : 0.02,\r\n\t\tlongitudeDelta : 0.02,\r\n\t},\r\n\tuserLocation : true,\r\n\twidth : '100%',\r\n\theight : '100%',\r\n\ttop : 0,\r\n});\r\n\r\n// open a single window\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nmapView.addEventListener('longpress', function(e) {\r\n\talert(e);\r\n});\r\n\r\nwindow.add(mapView);\r\nwindow.open();\r\n{code}", "attachment": [ { "id": "33621", "filename": ".log", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-11-21T16:04:03.000+0000", "size": 153460, "mimeType": "text/plain" }, { "id": "33622", "filename": "diagnostic3006535850083081922.log", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-11-21T16:04:13.000+0000", "size": 1743, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: support the 'longpress' event on MapView", "creator": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium Studio 2.1.2", "comment": { "comments": [ { "id": "228266", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Samsung Galaxy S2 2.3.6 device and Android emulator 2.3.3 on both 2.1.4 GA and latest 3.0.0 build.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-21T19:11:18.000+0000", "updated": "2012-11-21T19:11:18.000+0000" }, { "id": "228374", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Any ETA on this?", "updateAuthor": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-11-25T17:45:02.000+0000", "updated": "2012-11-25T17:45:02.000+0000" }, { "id": "231583", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Any ETA on this?", "updateAuthor": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-12-16T11:51:00.000+0000", "updated": "2012-12-16T11:51:00.000+0000" }, { "id": "232498", "author": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi. Also wondering if there was an movement on this. Thanks.", "updateAuthor": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-22T22:48:42.000+0000", "updated": "2012-12-22T22:48:42.000+0000" }, { "id": "237618", "author": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Vivekr, I was wondering if you could tell me if, included in the scope of this ticket, is the issue that the \"longpress\" event is fired on a quick tap. Thanks.", "updateAuthor": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-07T16:53:19.000+0000", "updated": "2013-02-07T16:53:19.000+0000" }, { "id": "238407", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Can you please give us an ETA? My android launch is depending on this and so is my paycheque", "updateAuthor": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-02-13T21:16:27.000+0000", "updated": "2013-02-13T21:16:27.000+0000" }, { "id": "238409", "author": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "body": "x2", "updateAuthor": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-13T21:18:50.000+0000", "updated": "2013-02-13T21:18:50.000+0000" }, { "id": "238513", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Since the TIUIView touch handlers get the event only once, I implemented this in the native MapView by handling touch. I have returned false for 'allowRegisterForTouch' so that TIView handlers don't get registered and we don't get duplicate event fired at the first time.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-02-14T02:43:51.000+0000", "updated": "2013-02-14T02:43:51.000+0000" }, { "id": "238760", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The 'longpress' event is never supported on MapView on Android. This event is not documented either. Change the ticket to New Feature.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-15T22:50:00.000+0000", "updated": "2013-02-15T22:50:00.000+0000" }, { "id": "238762", "author": { "name": "mdpauley", "key": "mdpauley", "displayName": "Michael Pauley", "active": true, "timeZone": "America/New_York" }, "body": "If I remember correctly this was a feature in 1.8", "updateAuthor": { "name": "mdpauley", "key": "mdpauley", "displayName": "Michael Pauley", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-15T23:04:56.000+0000", "updated": "2013-02-15T23:04:56.000+0000" }, { "id": "239012", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Dear Ping,\r\n\r\nPlease change it back to bug. We are waiting for 3 months until it was picked up and after a few weeks in review it is now a feature?? And this \"feature\" was available in 1.8 versions and also documented. Even so it is working in iPhone. This is a bug and not a new feature request. Besides there is also a pull request from november.", "updateAuthor": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-02-20T14:02:55.000+0000", "updated": "2013-02-20T14:02:55.000+0000" }, { "id": "239071", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "On testing, the Android behavior on 1.8 is identical to the current behavior, so this is not a regression. The 1.8 doc is wrong.\n\nSo we have a documentation issue here as well as a parity issue.\n\nWhen we transitioned to a new doc format in 1.8, a number of spurious events were introduced by the new documentation inheritance mechanism. Between 1.8 and 2.0, we spent a lot of time testing controls and correcting the doc for events etc., that were not actually supported. In this case, it appears that we were overzealous and removed the doc for the \"longpress\" event, although it appears to be supported on iOS.\n\nI'll open a doc ticket to correct the event support info.\n", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-20T19:00:33.000+0000", "updated": "2013-02-20T19:00:33.000+0000" }, { "id": "239107", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3871", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-20T21:01:59.000+0000", "updated": "2013-02-20T21:01:59.000+0000" }, { "id": "239292", "author": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can someone help me out with this? I'm having trouble keeping up. Will this be added in 3.1 or will documentation be updated to reflect that it is not available for Android?\r\n\r\nThanks.", "updateAuthor": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-21T19:01:49.000+0000", "updated": "2013-02-21T19:01:49.000+0000" }, { "id": "239296", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Ben, this feature will be in 3.1 and the doc will show that it is added on Android since 3.1.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-21T19:07:53.000+0000", "updated": "2013-02-21T19:07:53.000+0000" }, { "id": "239297", "author": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks, Ping.", "updateAuthor": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-21T19:12:41.000+0000", "updated": "2013-02-21T19:12:41.000+0000" }, { "id": "240127", "author": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks Ping. I tested and the longpress works...\r\n\r\nI have only 2 questions or requests.\r\n\r\nThe longpress is activated after 4 seconds pressing and then releasing. On the iPhone it is activated after 2 seconds and still pressing on the map.\r\nIs it possible to implement this as the iPhone so give it only 2 seconds (because it is hard not to move the map while pressing for 4 seconds). \r\nAnd is it possible to implement this as the iPhone that the event is triggered when still pressing and not on the up event.\r\n\r\nTIA,\r\nCarlo", "updateAuthor": { "name": "qoerz", "key": "qoerz", "displayName": "Carlo Hermus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-02-28T08:57:37.000+0000", "updated": "2013-02-28T08:57:37.000+0000" }, { "id": "240976", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I agree the longpress ought to be fired while the user is still pressing. This allows the app to update the UI and cue the user that something has happened. Otherwise, the user doesn't know they've pressed long enough until they lift their finger.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-06T18:39:04.000+0000", "updated": "2013-03-06T18:39:04.000+0000" }, { "id": "240979", "author": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Agreed. \r\n\r\nAlso, I've never encountered an app where a longpress takes 4 seconds. I'm not sure that a user could be convinced to press for that long.", "updateAuthor": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-06T18:44:02.000+0000", "updated": "2013-03-06T18:44:02.000+0000" }, { "id": "241710", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing it as it has been implemented.Test case added.", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-12T06:24:15.000+0000", "updated": "2013-03-12T06:24:15.000+0000" }, { "id": "241916", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Carlo, if you have test code handy, could you open a bug for the parity differences between Android and iOS? ", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-13T06:10:03.000+0000", "updated": "2013-03-13T06:10:03.000+0000" }, { "id": "244557", "author": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi. Can we get an update on what this additional activity is for? Is the release going to stay the same and has the timing been addressed or is it still 4 seconds?\r\n\r\nThanks.", "updateAuthor": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-28T21:55:40.000+0000", "updated": "2013-03-28T21:55:40.000+0000" }, { "id": "244589", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4054\r\n\r\nThe long press event does not take 4 seconds to activate, it's most likely masked by the fact that you need to lift your finger to trigger the event.\r\n\r\nI've changed it so the long press event activates even when the user does not perform and action up event.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-28T23:52:03.000+0000", "updated": "2013-03-28T23:52:03.000+0000" }, { "id": "244758", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ok, verified the feature has been implemented as follows:\r\nLongpress fires after approx 2 seconds while finger down, without \"up\" event. Verified on the following with the sample code above:\r\n\r\nMac OS 10.8.3\r\nSDK: 3.1.0.v20130329175112\r\nTitanium Studio, build: 3.1.0.201303261815\r\nCLI 3.0.25-alpha\r\nnode-appc 1.0.29-alpha\r\n\r\nNexus 4 OS 4.2.1", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-30T18:33:05.000+0000", "updated": "2013-03-30T18:33:05.000+0000" } ], "maxResults": 24, "total": 24, "startAt": 0 } } }