handlePanUpdate method

void handlePanUpdate(
  1. DragUpdateDetails details
)

Implementation

void handlePanUpdate(DragUpdateDetails details) {
  /*
  Matrix4 transform = StageSessionData.currentState.stageTransform;
  double scale = transform.getMaxScaleOnAxis();
  */
  /// RenderBox box = this.context.findRenderObject() as RenderBox;

  Offset delta = details.delta; //  * stageInverseScale;

  Offset newPos = _checkBounds(delta, stageBloc.state.bounds);

  if (!mounted) return;
  setState(() {
    _node.position = newPos + delta;
  });

  graphBloc.notifyConnectedEdges(_node);
}