I want to try an interaction lock in the current page that disables all interactive events like
- Tap and Click Events
- Pan, press and Swipe Events
- Page Scroll
I'm thinking of a button click event which would simply set a boolean var disableTouch to true or false. I could implement an if statement in all of the functions that involve the events. However, that's a lot of work and doesn't seem to be the best approach.
updateData()
{
  if (!disableTouch) {
    // run the function
  }
}
Also, this method isn't applicable for disabling page scroll. How do I achieve this?
 
    