From 8ed19d4e9a29aa94192aa68813648fe607d005af Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Fri, 30 Jul 2021 10:00:50 +0300 Subject: Fix node following breaking on minibuffer --- pages/index.tsx | 1 + 1 file changed, 1 insertion(+) (limited to 'pages/index.tsx') diff --git a/pages/index.tsx b/pages/index.tsx index 96d3ba8..8a9f39d 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -631,6 +631,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) { d3VelocityDecay: physics.velocityDecay, onNodeClick: (node: NodeObject, event: any) => { + event.preventDefault() const isDoubleClick = event.timeStamp - lastNodeClickRef.current < 400 lastNodeClickRef.current = event.timeStamp -- cgit v1.2.3