$carousel.on( 'dragStart.flickity', function( event, pointer ) { document.ontouchmove = function (e) { e.preventDefault(); } }); $carousel.on( 'dragEnd.flickity', function( event, pointer ) { document.ontouchmove = function (e) { return true; } });