{ "id": "80426", "key": "TIMOB-5311", "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": "12084", "description": "", "name": "Sprint 2011-44", "archived": true, "released": true, "releaseDate": "2011-11-07" }, { "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": "2012-01-04T14:23:36.000+0000", "created": "2011-09-20T08:08:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_scrollableview", "qe-testadded" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "14662", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "85210", "key": "TIMOB-7312", "fields": { "summary": "CLONE - Android: 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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "updated": "2014-06-19T12:46:25.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": "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": [], "flagged": false, "summary": "iOS: 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": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "166414", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Pull request opened:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/478\r\n\r\nNote that this should also get merged in to branch-5062", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-09-20T08:25:31.000+0000", "updated": "2011-09-20T08:25:31.000+0000" }, { "id": "175636", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug fixed. Verified on:\r\nSDK: 1.8.0.1.v20111209102124\r\nStudio: 1.0.7.201112080131\r\nOS: OS X Lion\r\nDevices Tested: iPhone Simulator 5.0, iPhone 5.0.1", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-09T16:40:42.000+0000", "updated": "2011-12-09T16:40:42.000+0000" }, { "id": "178022", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening bug to add tag\r\n", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-04T14:22:33.000+0000", "updated": "2012-01-04T14:22:33.000+0000" }, { "id": "178023", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Added tag", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-04T14:23:36.000+0000", "updated": "2012-01-04T14:23:36.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }