B2G/gecko/browser/devtools/tilt/TiltVisualizer.jsm
/**
   * Called once after every time a mouse button is pressed.
   */
Called once after every time a mouse button is pressed.
Called once after every time a mouse button is pressed .
function TVC__onMouseDown(e)
  {
    e.target.focus();
    e.preventDefault();
    e.stopPropagation();
    if (this._time < MOUSE_INTRO_DELAY) {
      return;
    }
    let button = e.which;
    this._downX = e.clientX - e.target.offsetLeft;
    this._downY = e.clientY - e.target.offsetTop;
    this.arcball.mouseDown(this._downX, this._downY, button);
  }
function TVC__onMouseDown ( e ) { e . target . focus ( ) ; e . preventDefault ( ) ; e . stopPropagation ( ) ; if ( this . _time < MOUSE_INTRO_DELAY ) { return ; } let button = e . which ; this . _downX = e . clientX - e . target . offsetLeft ; this . _downY = e . clientY - e . target . offsetTop ; this . arcball . mouseDown ( this . _downX , this . _downY , button ) ; }
Called once after every time a mouse button is pressed.
Called once after every time a mouse button is pressed .
// calculate x and y coordinates using using the client and target offset