In the mobile terminal page, users sometimes need to prohibit users from sliding screens.

document.body.addEventListener(‘touchmove’, function(e) {

  e.stopPropagation();//Prevent default events
  e.preventDefault();//Prevent bubbles
});

Leave a Reply

Your email address will not be published. Required fields are marked *