+1
Respuestas

How to trap all onscrollto events

Richard Lindley hace 11 años actualizado por icahill (Administrator) hace 11 años 3
I have a pager which I want to call an event every page change.

I have the onscrollto attached to an immediate child and if I swipe to turn the page once a second, the event gets called, but if I page through faster, the event does not seem to get called (until I stop).

Is there a way to make sure the event is called every time?
Unfortunately there is nothing you can do about this. This is the way scrolling actions must work (both scrollto and scrollaway). You can only guarantee that an action is fired when the user stops as you have described.
Thanks, as it turns out I found a more efficient way do accomplish what I was trying to do given this behaviour!
+1
Richard,

That is good to hear. I was talking with the Dev team yesterday and in an upcoming release we will offer a solution to this problem. An enhancement that can dispatch events to pager/list/tableviews during the scroll, instead of waiting for the scrolling to stop. So that should be a nice addition to the WIRE language.