enable and disable it scrollstar in jquery mobile
Hello I am new to the forum I did not find solution in google for my problem, my last resort was to go here, well I commented my problem, I disable the scroll when opening a panel jquery mobile and enable the close but unsuccessful, alone with desabillitarlo to open the panel, I did something asin:
$(document).on('pageinit',function(){
$("#my_panel").panel({
beforeopen: function(event,ui){
$(document).on( "scrollstart", function(event){
event.preventDefault();
});
}
});
});
but as it would enable the scroll back to close the panel? or
as would be the right way to achieve this effect?
a greeting.