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

No seperation between left swipe or right swipe #12

Open
NDakotaBE opened this issue Dec 11, 2012 · 2 comments
Open

No seperation between left swipe or right swipe #12

NDakotaBE opened this issue Dec 11, 2012 · 2 comments

Comments

@NDakotaBE
Copy link

It doesn't seem to matter when you slide left or right. If the sliding menu is open and you slide right it closes (which it shouldn't)

Vice versa with the left swipe

Kind regards,

@madbonkey
Copy link

is there any way to turn off the swipe behaviour? or control it?

@clementcho
Copy link

I was thinking the same thing last night.
I ended up mod. the jqm.slidemenu.js
I updated the swipeleft and swiperight event
$(document).on("swipeleft swiperight",".ui-page-active", function(e){
//console.log($(".ui-page-active :jqmData(slidemenu)").data('slideopen'));
//console.log('b');
if ($(".ui-page-active :jqmData(slidemenu)").data('slideopen')){
e.stopImmediatePropagation();
e.preventDefault();
slidemenu(sm, sm.data('slideopen'));
}

});

if you don't want to change the slideopen, u can add your own tag, such as "swipeopen"

and in the #slidemenu in your html just add the custom tag you added.

I hope it helps.

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

3 participants