onDoublePanStart method

dynamic onDoublePanStart()

Implementation

onDoublePanStart() {
  if (this.enabled && this.enablePan) {
    this.dispatchEvent(_startEvent);

    this.updateTbState(STATE2.PAN, true);

    this.setCenter(
        (this._touchCurrent[0].clientX + this._touchCurrent[1].clientX) / 2,
        (this._touchCurrent[0].clientY + this._touchCurrent[1].clientY) / 2);
    this._startCursorPosition.copy(this.unprojectOnTbPlane(
        this.camera, _center.x, _center.y, this.domElement, true));
    this._currentCursorPosition.copy(this._startCursorPosition);

    this.activateGizmos(false);
  }
}