I use the library jquery.mobile-events.min
, to control swipe events in mobile.
At a certain moment I am interested in stopping the sliding function.
$(function(){$('#touch-zone').on('swipeleft', function(e) { alert('izq'); })
});
$(document).ready(function(){
$('#borrar').click(function() {alert();
$('#touch-zone').off('tap');
})
$('#volver').click(function() {alert('volver');
$('#touch-zone').trigger('tap');
})
})
Todo va bien, al pulsar "borrar" se anulala el evento swipeleft, sin embargo triger no va, al pulsar "volver" no me recupera el evento.
You can help me Best regards