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));
  }
}