onPanUpdate method

  1. @override
void onPanUpdate(
  1. DragUpdateInfo info
)

Implementation

@override
void onPanUpdate(DragUpdateInfo info) {
  if (graph.hoverVertex != null) {
    algorithm.onDrag(graph.hoverVertex!, info, camera.viewfinder);
    graph.hoverVertex?.cpn?.onDrag(info);
  } else {
    camera.viewfinder.position -= info.delta.global / camera.viewfinder.zoom;
  }
}