jquery - Bind and Unbind Scrolling (using touchmove or difference solution) -
i have simple question how can disable , enable scrolling while @ mobile device? after quick search found
jquery("body").bind("touchmove",function(e){ e.preventdefault(); return false; });
works perfectly, how enable again?? have 2 function
function mobilepopup() { jquery("body").bind("touchmove",function(e){ e.preventdefault(); return false; }); }
and
function mobilepopupclose { // there want enable }
is posible binding touchmove event returning false? should bind else touchmove know should unbind? maybe implement function name idk. help
yes, unbind
it.
function mobilepopupclose { jquery("body").unbind("touchmove"); }
Comments
Post a Comment