B2G/gecko/browser/devtools/tilt/TiltVisualizer.jsm
/**
   * Called every time a mouse button is released.
   */
Called every time a mouse button is released.
Called every time a mouse button is released .
function TVC__onMouseUp(e)
  {
    e.preventDefault();
    e.stopPropagation();
    if (this._time < MOUSE_INTRO_DELAY) {
      return;
    }
    let button = e.which;
    let upX = e.clientX - e.target.offsetLeft;
    let upY = e.clientY - e.target.offsetTop;
    if (Math.abs(this._downX - upX) < MOUSE_CLICK_THRESHOLD &&
        Math.abs(this._downY - upY) < MOUSE_CLICK_THRESHOLD) {
      this.presenter.highlightNodeAt(upX, upY);
    }
    this.arcball.mouseUp(upX, upY, button);
  }
function TVC__onMouseUp ( e ) { e . preventDefault ( ) ; e . stopPropagation ( ) ; if ( this . _time < MOUSE_INTRO_DELAY ) { return ; } let button = e . which ; let upX = e . clientX - e . target . offsetLeft ; let upY = e . clientY - e . target . offsetTop ; if ( Math . abs ( this . _downX - upX ) < MOUSE_CLICK_THRESHOLD && Math . abs ( this . _downY - upY ) < MOUSE_CLICK_THRESHOLD ) { this . presenter . highlightNodeAt ( upX , upY ) ; } this . arcball . mouseUp ( upX , upY , button ) ; }
Called every time a mouse button is released.
Called every time a mouse button is released .
// calculate x and y coordinates using using the client and target offset // a click in Tilt is issued only when the mouse pointer stays in // relatively the same position