_mouseMoveHandler(event) {
    const lineIsGrabbed = event.point.y > this._line.strokeWidth &&
      event.point.y < this._h - this._line.strokeWidth &&
      event.point.x > this._w * 0.15 &&
      event.point.x < this._w * 0.85 &&
      Math.abs(event.point.y - this._line.segments[1].point.y) < this.HANDLE_SIZE;

    if (lineIsGrabbed) {
      this._endVibration();
      this._line.segments[1].point.y = event.point.y;
    } else {
      this._releaseString();
    }
  }
/**
  * Event listener for mouse movements. Determines whether to grab or release the line.
  * @param {paper.MouseEvent} event
  */
Event listener for mouse movements. Determines whether to grab or release the line.
Event listener for mouse movements . Determines whether to grab or release the line .
_mouseMoveHandler(event) {
    const lineIsGrabbed = event.point.y > this._line.strokeWidth &&
      event.point.y < this._h - this._line.strokeWidth &&
      event.point.x > this._w * 0.15 &&
      event.point.x < this._w * 0.85 &&
      Math.abs(event.point.y - this._line.segments[1].point.y) < this.HANDLE_SIZE;
    if (lineIsGrabbed) {
      this._endVibration();
      this._line.segments[1].point.y = event.point.y;
    } else {
      this._releaseString();
    }
  }
_mouseMoveHandler ( event ) { const lineIsGrabbed = event . point . y > this . _line . strokeWidth && event . point . y < this . _h - this . _line . strokeWidth && event . point . x > this . _w * 0.15 && event . point . x < this . _w * 0.85 && Math . abs ( event . point . y - this . _line . segments [ 1 ] . point . y ) < this . HANDLE_SIZE ; if ( lineIsGrabbed ) { this . _endVibration ( ) ; this . _line . segments [ 1 ] . point . y = event . point . y ; } else { this . _releaseString ( ) ; } }
Event listener for mouse movements.
Event listener for mouse movements .