onDoublePanMove method

dynamic onDoublePanMove()

Implementation

onDoublePanMove() {
  if (enabled && enablePan) {
    setCenter((_touchCurrent[0].clientX + _touchCurrent[1].clientX) / 2,
        (_touchCurrent[0].clientY + _touchCurrent[1].clientY) / 2);

    if (_state != State2.pan) {
      updateTbState(State2.pan, true);
      _startCursorPosition.copy(_currentCursorPosition);
    }

    _currentCursorPosition.copy(unprojectOnTbPlane(camera, _center.x, _center.y, domElement, true));
    applyTransformMatrix(pan(_startCursorPosition, _currentCursorPosition, true));
    dispatchEvent(_changeEvent);
  }
}