onDoublePanMove method

dynamic onDoublePanMove()

Implementation

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

    if (this._state != STATE2.PAN) {
      this.updateTbState(STATE2.PAN, true);
      this._startCursorPosition.copy(this._currentCursorPosition);
    }

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