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 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,335
    Answers
    3884
    Vote Rating
    1297
      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
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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
      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
  •