Skip to content

Commit

Permalink
Prevent click on wires
Browse files Browse the repository at this point in the history
  • Loading branch information
nilclass committed Jan 12, 2024
1 parent b54b406 commit 50703c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/ImageBoardView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
stroke: #fb8f8f;
}
}

.connection {
pointer-events: none;
}
}

.railSwitchTooltip {
Expand Down
4 changes: 2 additions & 2 deletions src/ImageBoardView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ const ImageBoardView: React.FC = () => {
fill: 'none',
}
const id = `${a.node}-${b.node}`
return <path key={id} id={id} style={style} d={d} />
return <path className='connection' key={id} id={id} style={style} d={d} />
})

return (
Expand Down Expand Up @@ -546,7 +546,7 @@ const ImageBoardView: React.FC = () => {
x={0}
y={-0.00001924485}
/>
<g>{connections}</g>
<g className="connections">{connections}</g>
</g>
</svg>
<FloatingPortal>
Expand Down

0 comments on commit 50703c1

Please sign in to comment.