Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    20
    Vote Rating
    0
    bassajen is on a distinguished road

      0  

    Default swipe event bug?

    swipe event bug?


    hello,

    i'm attaching this simple test app.

    the main view is made of a carousel of panels inside a main panel.

    when i swipe in Safari, sometimes the main panel gets the swipe event (and displays a test message) AND gets the carousel changing card, other times the event is only trapped by the carousel and is not propagated to the main panel.

    can you check it and tell me if there is a reason?

    thank you
    Attached Files

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,801
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Is there something I should do special? I get that alert every time I swipe to change items in the carousel.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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
    Oct 2011
    Posts
    20
    Vote Rating
    0
    bassajen is on a distinguished road

      0  

    Default


    change the Mykeynote.js like this

    Code:
        onTouchPanelEvent: function(e, target, options, eventController) {
            var eventName = eventController.info.eventName;
            if (!this.popup) {
                this.popup = Ext.Viewport.add({
                    xtype: 'myalert'
                });
                //Ext.Msg.alert(eventName + '-'+ e.pageX +'-'+ e.pageY +'-'+e.getTarget().id);
            }
            if (eventName == 'doubletap') {
                //Ext.Msg.alert(eventName + '-'+ e.pageX +'-'+ e.pageY +'-'+e.getTarget().id);
                this.popup.setTop(e.pageY-90);
                this.popup.setLeft(e.pageX-30);
                this.popup.show();
            }
            if (eventName == 'tap') {
                this.popup.hide();
            }       
            if (eventName == 'swipe') {
            	//Ext.Msg.alert(eventName + '-'+ e.pageX +'-'+ e.pageY +'-'+e.getTarget().id);
                console.log('the panel got a SWIPE!');
                this.popup.hide();
            }
        },
    
    
        onMycarouselActiveItemChange: function(container, value, oldValue, options) {
            console.log('the carousel got a SWIPE!');
        }
    and add the onMycarouselActiveItemChange as the function of the event ActiveItemchange of the carousel

    then swipe and check the console...

    i am attaching my console where you can see that i get x2 "carousel got a swipe" without a "panel got swipe" in between... sorry but i have no pattern to replicate, i just keep on swiping until it happens.

    I am using a Mac with safari 5.1.2.

    happy to help further if i can.

    Marco
    Attached Files

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