{ "id": "152576", "key": "TIMOB-19972", "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": [ { "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" }, { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-16T18:37:27.000+0000", "created": "2015-11-02T12:54:13.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "3dtouch", "iOS", "peek&pop", "preview", "previewcontext" ], "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": "2015-11-17T21:03:30.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": "Preview context only shows up on the top of the tableview. If you have 100 rows, and you scroll down to row ~30, you can't force touch anymore. If you move back to the top, row 1, everything works fine.", "attachment": [], "flagged": false, "summary": "iOS: Peek&Pop only works on first elements of Ti.UI.ListView", "creator": { "name": "janvankampen", "key": "janvankampen", "displayName": "Jan van Kampen", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "janvankampen", "key": "janvankampen", "displayName": "Jan van Kampen", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OSX El Captain, iOS 9.1, SDK 5.1, Xcode 7", "comment": { "comments": [ { "id": "369057", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "body": "Hi ,\r\nCould we get a reproducible test case?\r\n\r\nThanks", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2015-11-05T05:09:15.000+0000", "updated": "2015-11-05T05:09:15.000+0000" }, { "id": "370197", "author": { "name": "janvankampen", "key": "janvankampen", "displayName": "Jan van Kampen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\r\n{code:java}\r\nvar actions = [];\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"white\"\r\n});\r\n \r\n// The view to be previewed while popping.\r\nvar previewView = Ti.UI.createView({\r\n backgroundColor: \"blue\"\r\n});\r\n \r\n// The window to be opened after popping the preview.\r\nvar detailWindow = Ti.UI.createWindow({\r\n backgroundColor: \"yellow\"\r\n});\r\n \r\ndetailWindow.add(Ti.UI.createLabel({\r\n text: \"You made it!\"\r\n}));\r\n \r\n// The actions to be added to the preview context.\r\nvar action = Ti.UI.iOS.createPreviewAction({\r\n title: \"Preview Action\",\r\n style: Ti.UI.iOS.PREVIEW_ACTION_STYLE_DEFAULT\r\n});\r\n \r\naction.addEventListener(\"click\", function(e) {\r\n Ti.API.warn(e);\r\n alert(\r\n \"Title: \" + e.title +\r\n \"\\nStyle: \" + e.style +\r\n \"\\nIndex: \" + e.index +\r\n \"\\nSectionIndex: \" + e.sectionIndex +\r\n \"\\nItemIndex: \" + e.itemIndex\r\n );\r\n});\r\n \r\nactions.push(action);\r\n \r\n// Create the preview context\r\nvar context = Ti.UI.iOS.createPreviewContext({\r\n preview: previewView,\r\n actions: actions, // Can have both Ti.UI.iOS.PreviewAction + Ti.UI.iOS.PreviewActionGroup\r\n contentHeight: 300 // When unspecified, we use the available height\r\n});\r\n \r\ncontext.addEventListener(\"peek\", function(e) {\r\n Ti.API.warn(\"Peek\");\r\n Ti.API.warn(e);\r\n});\r\n \r\ncontext.addEventListener(\"pop\", function(e) {\r\n Ti.API.warn(\"Pop\");\r\n Ti.API.warn(e);\r\n});\r\n \r\n// Assign the preview context\r\nvar listView = Ti.UI.createListView({\r\n previewContext: context, // Will be ignored on unsupported devices\r\n});\r\n \r\nvar sections = [];\r\n \r\nfor(var i = 1; i <= 2; i++) {\r\n var items = [];\r\n var section = Ti.UI.createListSection({\r\n headerTitle: \"Section \" + i\r\n });\r\n for(var j = 1; j <= 30; j++) {\r\n items.push({\r\n properties: {\r\n itemId: \"test\" + i + j,\r\n title: \"Cell #\" + j\r\n }\r\n });\r\n }\r\n section.setItems(items);\r\n sections.push(section);\r\n}\r\nlistView.setSections(sections);\r\n \r\nwin.add(listView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "janvankampen", "key": "janvankampen", "displayName": "Jan van Kampen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-13T12:52:21.000+0000", "updated": "2015-11-13T12:52:21.000+0000" }, { "id": "370198", "author": { "name": "janvankampen", "key": "janvankampen", "displayName": "Jan van Kampen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please try it. When you scroll, you can't use peek anymore. But when it works, you get wrong data from de function onPeek.", "updateAuthor": { "name": "janvankampen", "key": "janvankampen", "displayName": "Jan van Kampen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-13T12:53:27.000+0000", "updated": "2015-11-13T12:53:27.000+0000" }, { "id": "370209", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is a valid issue, I'm on it.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-13T15:42:49.000+0000", "updated": "2015-11-13T15:42:49.000+0000" }, { "id": "370232", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/7441\r\nPR (5_1_X): https://github.com/appcelerator/titanium_mobile/pull/7442\r\n\r\n[~janvankampen] Please try this version as well.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-13T19:05:59.000+0000", "updated": "2015-11-13T19:05:59.000+0000" }, { "id": "370573", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, Peek & Pop features now work on elements after scrolling. Also checked that the itemIndex for each cell returns the appropriate value.\r\n\r\niPhone 6S Plus (9.1)\r\nMac OSX El Capitan 10.11 (15A284)\r\nTi SDK: 5.1.0.v20151116164430\r\nAppc Studio: 4.4.0.201511130407\r\nAppc NPM: 4.2.1.GA\r\nAppc CLI: 5.1.0-60\r\nTi CLI: 5.0.5\r\nAlloy: 1.7.26\r\nXcode 7.1(7B91b)\r\nNode v0.12.7\r\nproduction\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2015-11-17T21:03:04.000+0000", "updated": "2015-11-17T21:03:24.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }