Hi! It's quite strange to me. Why?
I have a function that, based on a param (fx), calls Fx.Scroll.start()
or .set(). But in both cases, a listener on the onComplete event
should be called... If I use set, the event just isn't broadcasted.
Therefore, to achieve the same goal, I had to do something like this:
if(!fx){
this.scroller.setOptions({ duration:0 })//to simulate
set()
this.scroller.start(pos,0);
this.scroller.setOptions({ duration:500 })//to
restore original duration
}
else this.scroller.start(pos,0);
Not to good right?
Any idea?