Results 1 to 3 of 3

Thread: Swipe direction in carousel

  1. #1
    Sencha User blessan's Avatar
    Join Date
    May 2010
    Posts
    316

    Default Swipe direction in carousel

    IS there a way to know which direction is the swipe in the cardswitch event of carousel component?

  2. #2
    Ext User
    Join Date
    Aug 2010
    Location
    Sweden, Vsters
    Posts
    85

    Default

    You can check the index of the oldCard and newCard arguments. If newCard is larger than oldCard the direction of the swipe should be right->left ...

  3. #3
    Sencha User blessan's Avatar
    Join Date
    May 2010
    Posts
    316

    Default

    ya thats what im doing right now. thanks

Similar Threads

  1. Prevent Swipe on Carousel
    By achapman in forum Sencha Touch 1.x: Discussion
    Replies: 11
    Last Post: 20 Jun 2014, 2:02 AM
  2. Carousel - click instead of swipe
    By SpikeWeb in forum Sencha Touch 1.x: Discussion
    Replies: 7
    Last Post: 15 Sep 2010, 6:17 PM
  3. Carousel ::: disable 2 Finger swipe
    By quarkus in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 13 Sep 2010, 12:47 AM
  4. Carousel and Swipe on middle items in a static html page
    By Abid Rasool in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 12 Aug 2010, 3:50 AM

Posting Permissions

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