I have a situation (I am sure others have overcome…) in that I have a list view and the list is quite long. The user can ‘scroll’ this list up and down quite fast. While the scrolling is happening the user can/might hit a (settings) button to exit the scene (for example the settings allows user to change the list content, so if the user sees content they do or donot require they can click a settings button to change list content options)
This all works well, except when the button is clicked while the scrolling is still moving (default low friction).
The onRender event fails because the button has/ is in the process of removing the scene and I think that there is now no data to access because it has been ‘purged/killed/nill’ ed by the removescene.
I therefore need a way to communicate between the list events and the button events so they can tell that the list is still moving so don’t removescene until stopped scrolling. I suspect I need to set up a few statemachine settings, but how can I tell when the scrolling has stopping (There is no event.direction property as far as I can tell on listview otherwise maybe event.direction may have helped).
Any suggestions please…
Thanks
Alec
for example, you could dispatch a new event from the table view for ‘isMoving’ with values true/false and watch for that in your code.