Disable page swipe
Normally stationary slide scheme: (Block sliding events)
window.ontouchmove=function(e) { && e.preventdefault (); E.returnvalue=false; && e.stoppropagation (); return false ;};
Some models do not support the above static sliding scheme, can be used: (click on the page floating to the specified position does not move the body of the position set to fixed)
$ ("#btn"). Click (function() { var top=$ (window). scrolltop (); This is the current scrolling page scroll bar position $ ("Body"). css ({ "position": "Fixed", "width": "100 % ", // where current needs to be fixed );});
Allow page swipe:
Generally allows sliding scheme: (Empty slide event)
Window.ontouchmove= "";
To handle the permissible sliding of a part of the model to prohibit sliding: (set body position to static)
$ ("#btn2"). Click (function() { $ ("Body"). css ({ "position": "Static" }) ;});
"Mobile" JS prohibit page swipe and allow sliding