onMouseDown()

in src/components/ZoomableSVGGroup.js [122:138]


  onMouseDown(event) {
    if (this.state.touching) {
      event.stopPropagation();
      return null;
    }

    // ignore non-left buttons.
    if (event.button !== 0) {
      return null;
    }

    return this.setState({
      dragging: true,
      dragX: event.clientX,
      dragY: event.clientY,
    });
  }