5 Nov 2012 7:39 AM #1
Unanswered: Track carousel elements movement
Is there a way to capture / link to the elastic movement of a carousel's items? Right now I'm getting their movement just by listening to the drag event of each element, but that doesn't really reflect the movement of the actual item, rather just the drag movement (either from a mouse or from a finger). I'm interested to move some other elements depending on the exact position of the carousel items (for exemple, if you let go of the item and it elastically jumps back / forward, I want my "linked" element to do the same).
Is such a thing even possible? Thanks!
7 Nov 2012 7:49 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
When you drag and you are at the end/beginning the bounce is coming from the dragend event when if figures out if it should go to the next card or if you need to stay at the current item. This is done on the carousel's element not the item elements.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
7 Nov 2012 7:56 AM #3
I'm not only asking for how to capture the movement at the beginning / end of the carousel, but even the one between the carousel's items. More precisely: how could I capture the elastic movement of the carousel's items AFTER I let go of them? Up until then I capture the movement by listening to the carousel elements drag event, but as soon as I let go of the element, the drag event stops firing (obviously)...