document.addEventListener('touchstart', function onTouchStart(event) { }, {passive: true}); document.addEventListener('touchmove', function onTouchMove(event) { }, {passive: true});