B2G/gecko/browser/devtools/responsivedesign/responsivedesign.jsm
/**
   * Resizing on mouse move.
   *
   * @param aEvent
   */
Resizing on mouse move.
@param aEvent
Resizing on mouse move . @param aEvent
function RUI_onDrag(aEvent) {
    let deltaX = aEvent.clientX - this.lastClientX;
    let deltaY = aEvent.clientY - this.lastClientY;
    if (this.ignoreY)
      deltaY = 0;
    let width = this.customPreset.width + deltaX;
    let height = this.customPreset.height + deltaY;
    if (width < MIN_WIDTH) {
        width = MIN_WIDTH;
    } else {
        this.lastClientX = aEvent.clientX;
    }
    if (height < MIN_HEIGHT) {
        height = MIN_HEIGHT;
    } else {
        this.lastClientY = aEvent.clientY;
    }
    this.setSize(width, height);
  }
function RUI_onDrag ( aEvent ) { let deltaX = aEvent . clientX - this . lastClientX ; let deltaY = aEvent . clientY - this . lastClientY ; if ( this . ignoreY ) deltaY = 0 ; let width = this . customPreset . width + deltaX ; let height = this . customPreset . height + deltaY ; if ( width < MIN_WIDTH ) { width = MIN_WIDTH ; } else { this . lastClientX = aEvent . clientX ; } if ( height < MIN_HEIGHT ) { height = MIN_HEIGHT ; } else { this . lastClientY = aEvent . clientY ; } this . setSize ( width , height ) ; }
Resizing on mouse move.
Resizing on mouse move .