B2G/gecko/browser/devtools/tilt/TiltVisualizer.jsm
/**
   * Called every time the mouse moves.
   */
Called every time the mouse moves.
Called every time the mouse moves .
function TVC__onMouseMove(e)
  {
    e.preventDefault();
    e.stopPropagation();
    if (this._time < MOUSE_INTRO_DELAY) {
      return;
    }
    let moveX = e.clientX - e.target.offsetLeft;
    let moveY = e.clientY - e.target.offsetTop;
    this.arcball.mouseMove(moveX, moveY);
  }
function TVC__onMouseMove ( e ) { e . preventDefault ( ) ; e . stopPropagation ( ) ; if ( this . _time < MOUSE_INTRO_DELAY ) { return ; } let moveX = e . clientX - e . target . offsetLeft ; let moveY = e . clientY - e . target . offsetTop ; this . arcball . mouseMove ( moveX , moveY ) ; }
Called every time the mouse moves.
Called every time the mouse moves .
// calculate x and y coordinates using using the client and target offset