Over a million developers have joined DZone.

Prevents Page Scrolling Iphone

·

var preventBehavior = function(e) { e.preventDefault(); }; 
document.addEventListener("touchmove", preventBehavior, false);
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}