1. #1
    Touch Premium Member
    Join Date
    Aug 2010
    Posts
    195
    Vote Rating
    2
    hitman01 is on a distinguished road

      0  

    Default Cancel Carousel Scroll

    Cancel Carousel Scroll


    I have a carousel with images. I would like to cancel the scroll when I pinch one of the images. It seems both events are fired. Basically I would like it to be more accurate, if it detects pinch, cancel swipe and the other way around.

    Any ideas how to do that?

  2. #2
    Touch Premium Member
    Join Date
    Aug 2010
    Posts
    195
    Vote Rating
    2
    hitman01 is on a distinguished road

      0  

    Default


    with 1.0 this became even worse. Now, when I pinch, the carousel first switches cards and then does a pinch and on the image before.

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Location
    Shanghai
    Posts
    71
    Vote Rating
    0
    perry_jia is on a distinguished road

      0  

    Default


    Yes, I also met this problem, have you solved the problem,waiting you message...

  4. #4
    Touch Premium Member
    Join Date
    Aug 2010
    Posts
    195
    Vote Rating
    2
    hitman01 is on a distinguished road

      0  

    Default


    Here you go. Override the Carousel and add these functions.

    // Check for Pinch Conflict
    onDragStart: function(e) {
    if(e.targetTouches.length == 1)
    Flipbook.Flipbook.superclass.onDragStart.call(this,e);
    },

    // Check for Pinch Conflict
    onDrag: function(e){
    if(e.targetTouches.length == 1)
    Flipbook.Flipbook.superclass.onDrag.call(this,e);
    },

    // Check for Pinch Conflict
    onDragEnd: function(e) {)
    if(e.targetTouches.length < 2)
    Flipbook.Flipbook.superclass.onDragEnd.call(this,e);
    },

Similar Threads

  1. [INFOREQ] Panel and Carousel scroll issue.
    By ankuravlani in forum Sencha Touch 1.x: Bugs
    Replies: 1
    Last Post: 4 Nov 2010, 10:58 AM
  2. how to scroll a card in a carousel
    By jodimas in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 4 Oct 2010, 12:20 AM
  3. Scroll memory on Carousel?
    By omulriain in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 27 Sep 2010, 2:28 PM
  4. Carousel - render without setting scale and allow user to zoom and scroll
    By r00bal in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 13 Sep 2010, 4:10 AM
  5. Noob: How to get a long page of content inside a carousel to scroll vertically?
    By orangechicken in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 30 Jun 2010, 5:31 PM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi