[TIMOB-2422] Add scrollEnd event to scroll views on Android
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-08-08T15:09:04.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | tbs-1.8.0 |
Reporter | Ralf Pfeiffer |
Assignee | Blain Hamon |
Created | 2011-04-15T03:19:16.000+0000 |
Updated | 2017-03-24T18:37:06.000+0000 |
Description
Environment: - Android checked on device (os 2.3.6 nexus one) and emulator (OS 2.2) Create a scrollable region of content with Ti.UI.createScrollView. The expected behavior is to be able to trigger and event when the whole portion of area is scrolled. 'scrollEnd' event works fine on iOS but on Android no event is triggered. 'scroll' event correctly works. Sample code: http://pastie.org/2690123
This does not actually work on Android, unless I misunderstand how the event is supposed to be used:
The scroll event currently implemented for iOS is in fact a scrollend event. It is implemented in scrollViewDidEndDecelerating.
The better course would be to rename that event to scrollend and implement a true scroll event in scrollViewDidScroll which fires when the scroll is 50% complete and the page control changes color.
I have done this locally with no issues.
(good potential for exercise assignment)
Closing ticket as duplicate with reference to the linked issues.