diff --git a/dist/index.html b/dist/index.html index 8646125..8782d49 100644 --- a/dist/index.html +++ b/dist/index.html @@ -175,7 +175,7 @@ }) //.d3Force('charge', null) .onEngineStop(() => { - Graph.zoomToFit(200, 80); + //Graph.zoomToFit(200, 80); // if mobile zoom to about... // Center/zoom on node @@ -188,6 +188,7 @@ Graph.centerAt(lastClickedNode.x, lastClickedNode.y, 1000); Graph.zoom(8, 2000); } else { + console.log("using root node"); const rootNode = graph_data.nodes.find((node)=>{return node.id === "about"}) Graph.centerAt(rootNode.x, rootNode.y, 1000); Graph.zoom(8, 2000);