startDraggingHandler()

in app/ItemView/CodeMirrorContainer.tsx [120:134]


  startDraggingHandler(evt: MouseEvent) {
    if (this.cm) {
      console.log("drag start");

      this.setState({
        startY: evt.y,
        startH: this.getCMHeight(),
      });

      document.body.addEventListener("mousemove", this.onDragHandler);
      window.addEventListener("mouseup", this.onDragRelease);
    } else {
      console.log("CodeMirror not set in state, so can't resize it");
    }
  }