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

feature request: close on swipe #33

Open
fritzmg opened this issue May 18, 2015 · 3 comments
Open

feature request: close on swipe #33

fritzmg opened this issue May 18, 2015 · 3 comments

Comments

@fritzmg
Copy link

fritzmg commented May 18, 2015

It would be cool if scotchPanels also implemented a feature that is present in mmenu as well: optionally closing the panel when swiping left or right on your smartphone (instead of having to click/touch the toggle button).

@michapixel
Copy link

+1

1 similar comment
@inweb-pro
Copy link

+1

@siamkreative
Copy link

Why not use TouchSwipe-Jquery-Plugin instead?

Example usage

$('.scotch-panel-wrapper').swipe({
    preventDefaultEvents: false,
    swipeLeft: function(direction) {
        navCategories.close();
    },
    swipeRight: function(direction) {
        navUser.close();
    }
});

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

No branches or pull requests

5 participants