function dragCallback(e) {
  var eventData = e.detail;
  var element = eventData.element;

  drawMagnificationTool(eventData);
  if (eventData.isTouchEvent === true) {
    element.addEventListener(_events2.default.TOUCH_DRAG_END, dragEndCallback);
    element.addEventListener(_events2.default.TOUCH_END, dragEndCallback);
  }

  e.preventDefault();
  e.stopPropagation();
}
/** Drag callback is triggered by both the touch and mouse magnify tools */
Drag callback is triggered by both the touch and mouse magnify tools
Drag callback is triggered by both the touch and mouse magnify tools
function dragCallback(e) {
  var eventData = e.detail;
  var element = eventData.element;
  drawMagnificationTool(eventData);
  if (eventData.isTouchEvent === true) {
    element.addEventListener(_events2.default.TOUCH_DRAG_END, dragEndCallback);
    element.addEventListener(_events2.default.TOUCH_END, dragEndCallback);
  }
  e.preventDefault();
  e.stopPropagation();
}
function dragCallback ( e ) { var eventData = e . detail ; var element = eventData . element ; drawMagnificationTool ( eventData ) ; if ( eventData . isTouchEvent === true ) { element . addEventListener ( _events2 . default . TOUCH_DRAG_END , dragEndCallback ) ; element . addEventListener ( _events2 . default . TOUCH_END , dragEndCallback ) ; } e . preventDefault ( ) ; e . stopPropagation ( ) ; }
Drag callback is triggered by both the touch and mouse magnify tools
Drag callback is triggered by both the touch and mouse magnify tools