{ "id": "153325", "key": "TIMOB-20020", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-07-13T21:32:40.000+0000", "created": "2015-11-19T20:15:13.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "3dtouch" ], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-07-13T21:32:40.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": "Right now the {{source}} property of the [peek|https://appcelerator.github.io/appc-docs/latest/#!/api/Titanium.UI.iOS.PreviewContext-event-peek] and {{pop}} events is always the {{Ti.UI.iOS.PreviewContext}} instance.\r\n\r\nIt would be useful if this would instead be the (child) view where the user actually force-touched. That way, depending on what child view the user tapped in a view or ListView/TableView item you can change the {{preview}} in the {{peek}} event and do something else in the {{pop}} event.\r\n\r\nIdea tossed by [~ralcocer] during the 3D Touch Tech Talk.", "attachment": [], "flagged": false, "summary": "iOS: Change source of peek and pop events to the (child) view force-touched on", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "comment": { "comments": [ { "id": "371349", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thought about this ticket a while now and came to the conclusion, that I would not bring in this behavior because:\r\n- the source internally is the preview context as part of the proxy system, we don't specify that\r\n- we don't start the peek and pop by any click event, everything is configured and handled before the user even taps the first time. Bringing in the touched view would create abnormal lacks because we need to bubble it up to the events inside the proxies\r\n- we bring the force touch properties starting in 5.2.0, you can set an event listener to the view then if you really want to receive the click (!) source and use it wherever you want\r\n\r\n[~fokkezb] does that make sense? Just want to keep the new API as clean as possible! :-)", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-24T16:05:52.000+0000", "updated": "2015-11-24T16:05:52.000+0000" }, { "id": "371368", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I agree that if this would be a hack in Obj-C/Swift then indeed we should not bring this into ours. Thanks for checking out Hans.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-24T19:07:47.000+0000", "updated": "2015-11-24T19:07:47.000+0000" }, { "id": "390638", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Closing for now, following the discussion above. Thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-13T21:32:40.000+0000", "updated": "2016-07-13T21:32:40.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }