I have a simple app that uses the chui gesture functions to show a slideout menu based on whether or not the slideout container has the "open" class.
var slideoutActive = false;
if (!$('.slide-out').hasClass('open')) {
$('body').on('swiperight', function() {
$('.slide-out').addClass('open');
slideoutActive = true;
});
}
$('body').on('swipeleft', function() {
if (slideoutActive == true) {
$('.slide-out').removeClass('open');
slideoutActive = false;
}
});
That all works fine. The issue is, I also have a range slider input in another article section and if the slider thumb is operated with any bit of force, i.e. not exactly stopping the "swipe" motion before the mouseup it enacts the swipe.
Any thoughts on a way to disable that?
Thanks