Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable draggable using setContainerSlideDelay(-1) #51

Open
dishwashwebdesign opened this issue Jun 10, 2013 · 1 comment
Open

disable draggable using setContainerSlideDelay(-1) #51

dishwashwebdesign opened this issue Jun 10, 2013 · 1 comment

Comments

@dishwashwebdesign
Copy link

On a certain view I would like to disable the draggable option which is initialized with the default value containerSlideDelay: 10.

I can set it to -1 using mySlideNav.setContainerSlideDelay(-1) and can retrive the value using mySlideNav.getContainerSlideDelay().

However, after setting the value to -1 the navigation view is not getting properly updated. Any chance of only re-initializing the needed component?

Thanks for any feedback.

@daxiang28
Copy link

I was able to get this to work in the view's listeners. It looked like there were two factors that contributed to enabling or disabling the drag on the container. I tried to get this to work with a mask, but that's going to take some more work.

Steve

    listeners: {
        slidestart:function(x,eOpts){
            if(!x.isClosed()){                  
                this.config.containerSlideDelay=10;
                this.setSlideSelector('x-container');
            }           
        },
        slideend:function(x){
            if(x.isClosed()){   
                this.config.containerSlideDelay=-1;
                this.setSlideSelector('x-toolbar');
            }
        }                   
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants