B2G/gecko/browser/devtools/tilt/TiltVisualizer.jsm
/**
   * Function handling the mouseDown event.
   * Call this when the mouse was pressed.
   *
   * @param {Number} x
   *                 the current horizontal coordinate of the mouse
   * @param {Number} y
   *                 the current vertical coordinate of the mouse
   * @param {Number} aButton
   *                 which mouse button was pressed
   */
Function handling the mouseDown event.
Call this when the mouse was pressed.

@param {Number} x
the current horizontal coordinate of the mouse
@param {Number} y
the current vertical coordinate of the mouse
@param {Number} aButton
which mouse button was pressed
Function handling the mouseDown event . Call this when the mouse was pressed . @param { Number } x the current horizontal coordinate of the mouse @param { Number } y the current vertical coordinate of the mouse @param { Number } aButton which mouse button was pressed
function TVA_mouseDown(x, y, aButton)
  {
    this._mousePress[0] = x;
    this._mousePress[1] = y;
    this._mouseButton = aButton;
    this._cancelReset();
    this._save();
    this._pointToSphere(
      x, y, this.width, this.height, this.radius, this._startVec);
    quat4.set(this._currentRot, this._lastRot);
  }
function TVA_mouseDown ( x , y , aButton ) { this . _mousePress [ 0 ] = x ; this . _mousePress [ 1 ] = y ; this . _mouseButton = aButton ; this . _cancelReset ( ) ; this . _save ( ) ; this . _pointToSphere ( x , y , this . width , this . height , this . radius , this . _startVec ) ; quat4 . set ( this . _currentRot , this . _lastRot ) ; }
Function handling the mouseDown event.
Function handling the mouseDown event .
// save the mouse down state and prepare for rotations or translations // find the sphere coordinates of the mouse positions