B2G/gecko/browser/devtools/tilt/TiltVisualizer.jsm
/**
   * Moves a target point into view only if it's outside the currently visible
   * area bounds (in which case it also resets any additional transforms).
   *
   * @param {Arary} aPoint
   *                the [x, y] point which should be brought into view
   */
Moves a target point into view only if it's outside the currently visible
area bounds (in which case it also resets any additional transforms).

@param {Arary} aPoint
the [x, y] point which should be brought into view
Moves a target point into view only if it ' s outside the currently visible area bounds ( in which case it also resets any additional transforms ) . @param { Arary } aPoint the [ x y ] point which should be brought into view
function TVA_moveIntoView(aPoint) {
    let visiblePointX = -(this._currentTrans[0] + this._additionalTrans[0]);
    let visiblePointY = -(this._currentTrans[1] + this._additionalTrans[1]);
    if (aPoint[1] - visiblePointY - MOVE_INTO_VIEW_ACCURACY > this.height ||
        aPoint[1] - visiblePointY + MOVE_INTO_VIEW_ACCURACY < 0 ||
        aPoint[0] - visiblePointX > this.width ||
        aPoint[0] - visiblePointX < 0) {
      this.reset([0, -aPoint[1]]);
    }
  }
function TVA_moveIntoView ( aPoint ) { let visiblePointX = - ( this . _currentTrans [ 0 ] + this . _additionalTrans [ 0 ] ) ; let visiblePointY = - ( this . _currentTrans [ 1 ] + this . _additionalTrans [ 1 ] ) ; if ( aPoint [ 1 ] - visiblePointY - MOVE_INTO_VIEW_ACCURACY > this . height || aPoint [ 1 ] - visiblePointY + MOVE_INTO_VIEW_ACCURACY < 0 || aPoint [ 0 ] - visiblePointX > this . width || aPoint [ 0 ] - visiblePointX < 0 ) { this . reset ( [ 0 , - aPoint [ 1 ] ] ) ; } }
Moves a target point into view only if it's outside the currently visible
 area bounds (in which case it also resets any additional transforms).
Moves a target point into view only if it ' s outside the currently visible area bounds ( in which case it also resets any additional transforms ) .