var toggleTouchScroll = function() { var d = document; if (typeof d.ontouchmove === 'object') return d.ontouchmove = function() { return false; }; if (typeof d.ontouchmove === 'function') return d.ontouchmove() ? d.ontouchmove = function() { return false; } : d.ontouchmove = function() { return true; }; };