onMouseMove method

dynamic onMouseMove(
  1. dynamic event
)

Implementation

onMouseMove(event) {
  var state = (_keyState != STATE.NONE) ? _keyState : _state;

  if (state == STATE.ROTATE && !scope.noRotate) {
    _movePrev.copy(_moveCurr);
    _moveCurr.copy(getMouseOnCircle(event.pageX, event.pageY));
  } else if (state == STATE.ZOOM && !scope.noZoom) {
    _zoomEnd.copy(getMouseOnScreen(event.pageX, event.pageY));
  } else if (state == STATE.PAN && !scope.noPan) {
    _panEnd.copy(getMouseOnScreen(event.pageX, event.pageY));
  }
}