PDA

View Full Version : Endless carousel loop (cardswitch not called when user scrolls too fast)



stenlik
2 Dec 2010, 11:29 PM
Hi,

I am using the Ext.Carousel component to do the 'endless loop' (after the last item is reached, user is navigated to the 1st one). I am listening for the cardswitch event where, when user reaches the last item, I (if he scrolls to right side) remove the 1st item and, I create new one and then I put it to the end of list.

The problem is that the cardswitch event is not called every time - if I scroll slowly it works fine, but if I start scrolling faster event is not executed (I observed the problem on desktop Safari and on iPhone as well, while on the slower iPhone 3G it was much worse then on iPhone4G).

Thanks a lot for help
BR
STeN