1. #1
    Sencha User Nertus's Avatar
    Join Date
    Jan 2011
    Location
    Minsk, Belarus
    Posts
    10
    Vote Rating
    0
    Nertus is on a distinguished road

      0  

    Default Unanswered: swipe event on the loadmask

    Unanswered: swipe event on the loadmask


    Hi everyone,
    I want to use swipe(with left direction) on my loadmask but it doesn't work:
    Code:
                           ...                        
                            xtype:'loadmask',
                            id:'clientProfileOverlayTooltip',
                            cls:'overlayTooltip',
                            message:'',
                            indicator:false,
                            styleHtmlContent:true,
                            html:Utils.getOverlayLayout(),
                            listeners:{
    			    tap:function () {
    				...
    			    },
    			    swipe:{
    				...
    			    }
    			...

  2. #2
    Sencha Premium Member bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Answers
    49
    Vote Rating
    42
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    The swipe event is swallowed up in the mask. Here's a snippet from the source for Ext.Mask which tells the story:

    Code:
    initialize: function() {
        this.callSuper();
    
    
        this.element.on('*', 'onEvent', this);
    },
    
    
    onEvent: function(e) {
        var controller = arguments[arguments.length - 1];
    
    
        if (controller.info.eventName === 'tap') {
            this.fireEvent('tap', this, e);
            return false;
        }
    
    
        if (e && e.stopEvent) {
            e.stopEvent();
        }
    
    
        return false;
    },
    Why do you want to handle swiping the mask?

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

  3. #3
    Sencha User Nertus's Avatar
    Join Date
    Jan 2011
    Location
    Minsk, Belarus
    Posts
    10
    Vote Rating
    0
    Nertus is on a distinguished road

      0  

    Default


    I use loadmask to show help layer with notice "Swipe left to go to the search results and tap to close this notice"

  4. #4
    Sencha Premium Member bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Answers
    49
    Vote Rating
    42
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    You could use a centered overlay and use the overlay for handling the swipe and tap to exit.

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar