12-02-2008, 10:50 AM
Join Date: Nov 2008
Carrier: vodafone uk
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | Detecting scroll direction from ListField
Please Login to Remove!
I need to detect scroll direction inside a ListField. I have added a focusChangeListener to the ListField but I can't see how you would detect the direction that it has moved (up or down).
I also looked at Field.onFocus() as this takes as a parameter the direction but it's not working as I am wanting to detect the scroll from within the ListField, not from another Field to the ListField.
As a worst case I could try something where you save the selectedIndex and compare it to the new selectedIndex on Focus change but I would prefer to implement something cleaner.