code: public void onMouseMove(MouseMoveEvent event) {
  		if (isMeasuring() && distanceLine.getOriginalLocation() != null) {
  			updateMeasure(event, false);
  			dispatchState(State.MOVE);
  		}
  	}
docs: Update the drawing while moving the mouse.