1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    8
    Vote Rating
    0
    paltinescu is on a distinguished road

      0  

    Default Unanswered: Track carousel elements movement

    Unanswered: Track carousel elements movement


    Hi,

    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!

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,144
    Answers
    3506
    Vote Rating
    855
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    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 services@sencha.com

    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.

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    8
    Vote Rating
    0
    paltinescu is on a distinguished road

      0  

    Default


    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)...

Thread Participants: 1

Tags for this Thread