{ "id": "76940", "key": "TIMOB-4508", "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": "12077", "description": "", "name": "Sprint 2011-37", "archived": true, "released": true, "releaseDate": "2011-09-19" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-09-13T13:28:19.000+0000", "created": "2011-06-27T14:46:46.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_views" ], "versions": [], "issuelinks": [ { "id": "12664", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "80036", "key": "TIMOB-5224", "fields": { "summary": "Android: Expose \"pinch\" events in Ti.UI.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": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T18:27:18.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": "We need to have the event handler for pinch gestures available for TIUIView objects and their derivatives\r\n\r\nThis is needed for many projects we've been a apart of.\r\n\r\nWe recently implemented this in the soon to be available openGL module development project (ios only so far) and it seems to work for our needs there.\r\n\r\nHaving this available for all views and objects that are based on view objects would be very useful.\r\n\r\nHere are the code snippets from the IOS side:\r\n\r\nAdded this to the view initialization:\r\n\r\n UIPinchGestureRecognizer *pinchRecognizer;\r\n pinchRecognizer=[[UIPinchGestureRecognizer alloc] \r\n initWithTarget:self\r\n action:@selector(foundPinch:)];\r\n [controller.view addGestureRecognizer:pinchRecognizer];\r\n [pinchRecognizer release];\r\n\r\nhere's the callback:\r\n\r\n- (void)foundPinch:(UIPinchGestureRecognizer *)recognizer {\r\n NSDictionary *event = [NSDictionary dictionaryWithObjectsAndKeys:NUMDOUBLE(recognizer.scale), @\"scale\", NUMDOUBLE(recognizer.velocity), @\"velocity\", nil];\r\n [self.proxy fireEvent:@\"pinch\" withObject:event];\r\n}\r\n\r\n\r\nhere's how we use it now on the opengl view \r\n\r\nopengl.addEventListener('pinch', function {\r\n scale = e.scale;\r\n});\r\n", "attachment": [], "flagged": false, "summary": "iOS: Need the pinch gesture exposed for TIUIView event listeners", "creator": { "name": "patakijv", "key": "patakijv", "displayName": "John V Pataki", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "patakijv", "key": "patakijv", "displayName": "John V Pataki", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "IOS & Android", "comment": { "comments": [ { "id": "157880", "author": { "name": "kclark", "key": "kclark", "displayName": "Kincy Clark", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Per our conversation, assigning to you", "updateAuthor": { "name": "kclark", "key": "kclark", "displayName": "Kincy Clark", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-27T15:32:36.000+0000", "updated": "2011-06-27T15:32:36.000+0000" }, { "id": "162195", "author": { "name": "patakijv", "key": "patakijv", "displayName": "John V Pataki", "active": true, "timeZone": "America/Los_Angeles" }, "body": "While the pinch is being added, the enterprise customer project that needs the \"pinch\" also needs \"long press\". It seems reasonable that the effort here can expose both of these gestures together.", "updateAuthor": { "name": "patakijv", "key": "patakijv", "displayName": "John V Pataki", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-08T18:41:33.000+0000", "updated": "2011-08-08T18:41:33.000+0000" }, { "id": "165883", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Doc reviewed, merged.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-13T13:28:19.000+0000", "updated": "2011-09-13T13:28:19.000+0000" }, { "id": "166230", "author": { "name": "patakijv", "key": "patakijv", "displayName": "John V Pataki", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We will be testing this based on the AppC customer requirement to use it... which involves being able to pinch to zoom & rotate an image view. I suspect by default pinch exposes the scale property. What will we have to do in ti js to best be able to implement being able to rotate and also pan the view along with pinch to zoom? Is there a recommended way to do this based on they way pinch has been exposed through the module? ", "updateAuthor": { "name": "patakijv", "key": "patakijv", "displayName": "John V Pataki", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-15T14:55:52.000+0000", "updated": "2011-09-15T15:02:04.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }