flutter_graphite icon indicating copy to clipboard operation
flutter_graphite copied to clipboard

DirectGraph.onEdgeTapDown doesn't work for some edges

Open mikeryder opened this issue 2 years ago • 1 comments

I am running Graphite 0.3.0, Flutter 2.2.3 I have a graph: {id: Step 1, next: [Step 2, Step 2a]} {id: Step 2, next: [Step 3]} {id: Step 3, next: []} {id: Step 2a, next: [Step 3]}

Here is my DirectGraph Widget: DirectGraph( list: graphData.nodeInputs, cellWidth: 136.0, cellPadding: 24.0, contactEdgesDistance: 10.0, orientation: MatrixOrientation.Vertical, onNodeTapDown: (, MatrixNode node) => print("Node tap"), onEdgeSecondaryTapDown: (, Edge edge) => print("Edge tap"), onEdgeTapDown: (_, Edge edge) => print("Edge tap"), )

The graph renders successfully, but the "onEdgeTapDown" does not fire on most taps. In my example, the edge from "Step 1" to "Step 2" and "Step 2" to "Step 3" never fires. Sometimes it fires on the edge from "Step 1" to "Step 2a" and "Step 2a" to "Step 3".

Let me know if there is additional information I can provide.

mikeryder avatar Aug 15 '21 14:08 mikeryder

related issue https://github.com/nateshmbhat/touchable/issues/18

lempiy avatar Aug 30 '21 07:08 lempiy