PDA

View Full Version : Infinite Carousel



oddz
21 Nov 2011, 10:20 AM
The title is incorrect here, I was thinking of the Ext.plugin.touch.CardSwipe component developed by mitchellsimoens. Is anyone working on a mixin or override that will decorate the default carousel with the behavior present in that plugin?

Thanks

mitchellsimoens
21 Nov 2011, 11:18 AM
All that plugin did was add a listener to the swipe event and did some checking which direction the swipe was and then do the appropriate next/prev. I would actually challenge you to port it to ST2 :)

oddz
21 Nov 2011, 4:08 PM
I was looking into it but it doesn't look like the carousel fires a swipe event making it a much more complex task than in touch 1.

rdougan
21 Nov 2011, 11:42 PM
The swipe event wil be in before the GA.

For now, you could probably listen to the activeitemchange event?

mitchellsimoens
22 Nov 2011, 7:23 AM
I was looking into it but it doesn't look like the carousel fires a swipe event making it a much more complex task than in touch 1.

My plugin didn't use Carousel. It was meant to be put on a Panel/Container using CardLayout and then change the active item based on swipe direction. swipe event isn't on the component but on the element.