{ "id": "63838", "key": "TIMOB-3206", "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": "11256", "description": "", "name": "Sprint-2011-08", "archived": true, "released": true, "releaseDate": "2011-02-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-11T18:27:09.000+0000", "created": "2011-04-15T03:39:27.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "rotation", "rplist", "scrollableview" ], "versions": [], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-05-11T18:27:09.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": "{html}

Stops in the middle of the scroll, and then doesn't re-center on\nthe view that was being scrolled to. We need to take rotation into\naccount on scrollable view to prevent issues like this. Can be seen\nin the following code sample:

\n
\nvar win = Titanium.UI.createWindow({backgroundColor:'white'});\nwin.orientationModes = [\n    Titanium.UI.PORTRAIT,\n    Titanium.UI.UPSIDE_PORTRAIT,\n    Titanium.UI.LANDSCAPE_LEFT,\n    Titanium.UI.LANDSCAPE_RIGHT,\n    Titanium.UI.FACE_UP,\n    Titanium.UI.FACE_DOWN\n]; \nvar views = [];\n\nfor(var i = 0; i < 25; i++) {\n    views.push(Ti.UI.createWebView({\n        html: '<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>',\n        left: 20,\n        right: 20,\n        backgroundColor: '#eee'\n    }));\n}\n\nvar sv = Ti.UI.createScrollableView({\n    left: 20,\n    right: 20,\n    top: 20,\n    clipViews: false,\n    views: views    \n});\n\nwin.add(sv);\nwin.open();\n
\n

Affects all devices, but easiest to see this behavior (from a\nvisual perspective) on iPad.

{html}", "attachment": [], "flagged": false, "summary": "Rotating device in the middle of view scroll causes odd behavior", "creator": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130287", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Looks like this is possibly an Apple bug - scrollview end\ndecelerate appears to be fired upon a rotation event. Going to\ninvestigate further.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:39:27.000+0000", "updated": "2011-04-15T03:39:27.000+0000" }, { "id": "130288", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [ff776214c7030cdfc64a8950dd87fe50ca723f43])\n[#3206 state:fixed-in-qa] Check to see if the\ndevice rotates in the middle of scrolling; if so, snap to the\nnearest view. \nhttps://github.com/appcelerator/titanium_mobile/commit/ff776214c703...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:39:28.000+0000", "updated": "2011-04-15T03:39:28.000+0000" }, { "id": "133476", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Attempted to reproduce with iPhone 4, iOS 4.3.3. KS 1.7.0, build 1.7.0.879871b. Did not notice any odd behavior as I rotated while scrolling. Tried every combination of view change and scroll I could. Closing", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-11T18:27:09.000+0000", "updated": "2011-05-11T18:27:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }