{ "id": "85210", "key": "TIMOB-7312", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-03-19T11:42:14.000+0000", "created": "2012-01-20T10:21:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_scrollableview", "qe-and011912", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "14662", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "80426", "key": "TIMOB-5311", "fields": { "summary": "iOS: Scrollable View currentPage Doesn't Change When Scrolling 50%, Despite Comments in Code", "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 } } } } ], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-17T18:45:10.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": "h1. Problem\r\nThe currentPage of a scrollable view does not always sync up with the visible dot. This happens because the dot is updated when the user scrolls over 50%, and the currentPage only updates when the underlying scroll view ends decelerating.\r\n\r\nThis is a problem because the app may act based on the currentPage of the scrollable view. So if the user swipes, and then hits a button that shows different content based on the currentPage, the wrong content can show up.\r\n\r\nh2. Reproduction\r\nDrop the following in an app.js, and swipe right and left to the various pages of the scrollable view. Down at the bottom, I have placed a label that is updated with the currentPage.\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar scroll = Ti.UI.createScrollableView({\r\n bottom: 30,\r\n views: [\r\n Ti.UI.createView({ backgroundColor: 'cyan' }),\r\n Ti.UI.createView({ backgroundColor: 'magenta' }),\r\n Ti.UI.createView({ backgroundColor: 'yellow' })\r\n ],\r\n pagingControlColor: '#000',\r\n pagingControlHeight: 30\r\n});\r\nwin.add(scroll);\r\n\r\nvar currentPageLabel = Ti.UI.createLabel({\r\n text: 'Current Page: Loading...', textAlign: 'center',\r\n bottom: 0, right: 0, left: 0,\r\n height: 30,\r\n color: '#fff', backgroundColor: '#000'\r\n});\r\nwin.add(currentPageLabel);\r\nsetInterval(function() {\r\n currentPageLabel.text = 'Current Page: ' + scroll.currentPage;\r\n}, 50);\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "36441", "filename": "new-17-52-34.png", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T12:26:34.000+0000", "size": 16143, "mimeType": "image/png" }, { "id": "36440", "filename": "Screenshot_2013-03-19-16-59-11.png", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T11:53:22.000+0000", "size": 17553, "mimeType": "image/png" } ], "flagged": false, "summary": "CLONE - Android: Scrollable View currentPage Doesn't Change When Scrolling 50%, Despite Comments in Code", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 1.9.0.v20120119134634, 1.8.0.1\r\nAndroid: V8/Rhino\r\nStudio: 1.0.8\r\nOS: Lion\r\nDevices Tested: Galaxy Nexus 4.0.2, Droid3 2.3.4, Nexus One 2.2.2", "comment": { "comments": [ { "id": "242890", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem cannot reproduce with the release 3.0.2 and 3.1.0\r\nsee the screenshots", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T11:52:10.000+0000", "updated": "2013-03-19T12:27:27.000+0000" }, { "id": "413588", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:45:10.000+0000", "updated": "2017-03-17T18:45:10.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }