jquery micro-channel browser block page drag

jquery micro-channel browser drag block page
<pre>
function bodyScroll (Event) {
the event.preventDefault ();
}

document.body.addEventListener('touchmove', bodyScroll, false);

/ * Some pages may affect the inside of the touch event can take the following approach to lift * /
document.body.removeEventListener ( 'touchmove', bodyScroll, false);
</ pre>

Guess you like

Origin www.cnblogs.com/newmiracle/p/11856334.html