summaryrefslogtreecommitdiff
path: root/pages/index.tsx
diff options
context:
space:
mode:
authorKirill Rogovoy <[email protected]>2021-07-30 10:00:50 +0300
committerKirill Rogovoy <[email protected]>2021-07-30 10:00:50 +0300
commit8ed19d4e9a29aa94192aa68813648fe607d005af (patch)
tree493f9664dc8824fdae125f8eadd7722b57cdf353 /pages/index.tsx
parente61f1e124f052e2317385b48f0b474175f685378 (diff)
Fix node following breaking on minibuffer
Diffstat (limited to 'pages/index.tsx')
-rw-r--r--pages/index.tsx1
1 files changed, 1 insertions, 0 deletions
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