Results 1 to 3 of 3

Thread: swipe event bug?

    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
      0  

    Default 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 Attached Files

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      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 @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
    Oct 2011
    Posts
    20
    Vote Rating
    0
      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 Attached Files

Posting Permissions

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