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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -