Results 1 to 5 of 5

Thread: Infinite Carousel

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    125
    Vote Rating
    0
      0  

    Default Infinite Carousel

    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

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    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
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    125
    Vote Rating
    0
      0  

    Default

    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.

  4. #4
    Sencha User rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159
    Vote Rating
    7
      0  

    Default

    The swipe event wil be in before the GA.

    For now, you could probably listen to the activeitemchange event?
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  5. #5
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    Quote Originally Posted by oddz View Post
    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.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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