Results 1 to 3 of 3

Thread: Track carousel elements movement

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    8
    Vote Rating
    0
      0  

    Default 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 - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,023
    Answers
    3976
    Vote Rating
    1334
      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 @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    8
    Vote Rating
    0
      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)...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •