function mouseDownCallback(e) {
  var eventData = e.detail;
  var element = eventData.element;
  var options = (0, _toolOptions.getToolOptions)(toolType, element);

  if ((0, _isMouseButtonEnabled2.default)(eventData.which, options.mouseButtonMask)) {
    element.addEventListener(_events2.default.MOUSE_DRAG, whichMovement);
    element.addEventListener(_events2.default.MOUSE_MOVE, whichMovement);

    element.removeEventListener(_events2.default.MOUSE_DOWN, mouseDownCallback);
    recordStartPoint(eventData);

    return false;
  }
}
/** Records the start point and attaches the drag event handler */
Records the start point and attaches the drag event handler
Records the start point and attaches the drag event handler
function mouseDownCallback(e) {
  var eventData = e.detail;
  var element = eventData.element;
  var options = (0, _toolOptions.getToolOptions)(toolType, element);
  if ((0, _isMouseButtonEnabled2.default)(eventData.which, options.mouseButtonMask)) {
    element.addEventListener(_events2.default.MOUSE_DRAG, whichMovement);
    element.addEventListener(_events2.default.MOUSE_MOVE, whichMovement);
    element.removeEventListener(_events2.default.MOUSE_DOWN, mouseDownCallback);
    recordStartPoint(eventData);
    return false;
  }
}
function mouseDownCallback ( e ) { var eventData = e . detail ; var element = eventData . element ; var options = ( 0 , _toolOptions . getToolOptions ) ( toolType , element ) ; if ( ( 0 , _isMouseButtonEnabled2 . default ) ( eventData . which , options . mouseButtonMask ) ) { element . addEventListener ( _events2 . default . MOUSE_DRAG , whichMovement ) ; element . addEventListener ( _events2 . default . MOUSE_MOVE , whichMovement ) ; element . removeEventListener ( _events2 . default . MOUSE_DOWN , mouseDownCallback ) ; recordStartPoint ( eventData ) ; return false ; } }
Records the start point and attaches the drag event handler
Records the start point and attaches the drag event handler