Is there any way to detect whether a list is scrolling or not,likelist.isScrolling
Is there any way to detect whether a list is scrolling or not,like list.isScrolling
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So, @Khaled showed a way to do it with the MX component. If you are using the Spark component, that event doesn’t work. Instead, you can listen to changes on
myList.scroller.viewport.verticalScrollPositionorhorizontalScrollPosition.In neither of these cases do you get to know when the list stops getting scrolled (I’m not sure if you want it or not). You might have to set a timer and any time the timer goes off without any scrolling events, you are no longer scrolling?
Unfortunately, you haven’t explained what you are trying to accomplish, wo we can’t adequately answer your question.