code: function disableControlsTemporarily() {
      viewer.controls().disableMethod('touchView');
      viewer.controls().disableMethod('pinch');
      setTimeout(function() {
        viewer.controls().enableMethod('touchView');
        viewer.controls().enableMethod('pinch');
      }, 200);
    }
docs: Prevent pan and zoom events from being handled after swipe ends.