No seperation between left swipe or right swipe
NDakotaBE opened this issue · 2 comments
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,
is there any way to turn off the swipe behaviour? or control it?
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.