Skip to content

Commit

Permalink
Merge pull request #1511 from Ekep-Obasi/fix/open-edit-node-window-on…
Browse files Browse the repository at this point in the history
…-tap-node

Tapping any surface area of the node should open the edit node window - blueprint
  • Loading branch information
Rassl authored May 23, 2024
2 parents 07fb813 + c385f14 commit 7d6baad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ export const Node = memo(({ node, setSelectedNode, onSimulationUpdate, isSelecte

return (
// @ts-ignore Ignores type error on next line)
<mesh ref={meshRef} {...bind()} position={new Vector3(node.x, node.y, 0)}>
<mesh ref={meshRef} onClick={handleClick} {...bind()} position={new Vector3(node.x, node.y, 0)}>
<Circle args={[NODE_RADIUS, 30, 20]}>
<meshStandardMaterial attach="material" color={color} />
</Circle>

<Text onClick={handleClick} {...fontProps} color="#000" fontSize={2}>
<Text {...fontProps} color="#000" fontSize={2}>
{node.type}
</Text>
</mesh>
Expand Down

0 comments on commit 7d6baad

Please sign in to comment.