demos/touch-gestures/index.js
function disableControlsTemporarily() {
    viewer.controls().disableMethod('touchView');
    viewer.controls().disableMethod('pinch');
    setTimeout(function() {
      viewer.controls().enableMethod('touchView');
      viewer.controls().enableMethod('pinch');
    }, 200);
  }
function disableControlsTemporarily() {
    viewer.controls().disableMethod('touchView');
    viewer.controls().disableMethod('pinch');
    setTimeout(function() {
      viewer.controls().enableMethod('touchView');
      viewer.controls().enableMethod('pinch');
    }, 200);
  }
function disableControlsTemporarily ( ) { viewer . controls ( ) . disableMethod ( 'touchView' ) ; viewer . controls ( ) . disableMethod ( 'pinch' ) ; setTimeout ( function ( ) { viewer . controls ( ) . enableMethod ( 'touchView' ) ; viewer . controls ( ) . enableMethod ( 'pinch' ) ; } , 200 ) ; }
Prevent pan and zoom events from being handled after swipe ends.
Prevent pan and zoom events from being handled after swipe ends .