{ "id": "91267", "key": "TIMOB-9061", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13408", "description": "Sprint 2012-12 API", "name": "Sprint 2012-12 API", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-12T23:50:47.000+0000", "created": "2012-05-03T08:26:14.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_scrollableview", "qe-testadded", "release-note" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "17190", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "91015", "key": "TIMOB-8933", "fields": { "summary": "iOS: Redefine \"scroll\" event in ScrollableView, and add \"scrollEnd\"", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2012-07-13T10:16:20.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": "On Android, the {{ScrollableView}} {{scroll}} event is actually fired when dragging stops; it should therefore be renamed to {{dragEnd}}.\r\n\r\nThen, a proper {{scroll}} event, fired continuously as the view is scrolled, is needed.\r\n\r\nThese changes have been addressed in my pull request: [titanium_mobile/#2101|https://github.com/appcelerator/titanium_mobile/pull/2101#issuecomment-5480208]", "attachment": [], "flagged": false, "summary": "Android: `ScrollableView`: `scroll` event should be renamed to `dragEnd`; proper `scroll` event needed", "creator": { "name": "rfranknj", "key": "rfranknj", "displayName": "Russell Frank", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "rfranknj", "key": "rfranknj", "displayName": "Russell Frank", "active": true, "timeZone": "America/New_York" }, "environment": "Android", "comment": { "comments": [ { "id": "194188", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "h3. Test case from Russ's PR\r\n\r\nWith a little addition to make it viable as an app.js.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor: \"#444\"});\r\nvar view1 = Ti.UI.createView({ backgroundColor:'#123', width: 250 });\r\nvar view2 = Ti.UI.createView({ backgroundColor:'#246', width: 250 });\r\nvar view3 = Ti.UI.createView({ backgroundColor:'#48b', width: 250 });\r\n\r\nvar scrollableView = Ti.UI.createScrollableView({\r\n views: [view1,view2,view3],\r\n showPagingControl: true,\r\n width: 260,\r\n height: 430\r\n});\r\n\r\nwin.add(scrollableView);\r\nwin.open();\r\n\r\nscrollableView.addEventListener('scroll', function (e) {\r\n Ti.API.debug('scrollableView got a scroll event: float:' + e.currentPageAsFloat + ' int: ' + e.currentPage);\r\n});\r\n\r\nscrollableView.addEventListener('dragEnd', function (e) {\r\n Ti.API.debug('scrollableView got a dragEnd event: ' + e.currentPage);\r\n});\r\n\r\nscrollableView.addEventListener('scrollEnd', function (e) {\r\n Ti.API.debug('scrollableView got a scrollEnd event: ' + e.currentPage);\r\n});\r\n{code}\r\n\r\nRun that and watch logcat, make sure the values shown in logcat are logical.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-05-08T14:42:24.000+0000", "updated": "2012-05-08T14:42:24.000+0000" }, { "id": "196951", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull merged", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-04T00:00:24.000+0000", "updated": "2012-06-04T00:00:24.000+0000" }, { "id": "199922", "author": { "name": "mgadiya", "key": "mgadiya", "displayName": "Mukesh Gadiya", "active": true, "timeZone": "America/Los_Angeles" }, "body": "SDK: 2.1.0.v20120622174154\r\nAndroid: 2.3.4\r\nDroid3\r\nOS: Lion 10.7.3\r\n\r\nVerified that: \r\n1. scroll is fired continuously as you scroll in the window of the app\r\n2. scrollend and dragend events are fired as the user ends scrolling and dragging on the scrollable window. ", "updateAuthor": { "name": "mgadiya", "key": "mgadiya", "displayName": "Mukesh Gadiya", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T13:57:11.000+0000", "updated": "2012-06-23T13:57:11.000+0000" }, { "id": "203087", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-12T23:49:13.000+0000", "updated": "2012-07-12T23:49:13.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }