fix: corrects connector width issue on zoom

This commit is contained in:
Mark Mankarious
2023-08-18 17:07:24 +01:00
parent 58dd3b59da
commit 555244c206
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ export const Connector = ({ connector }: Props) => {
<polyline
points={pathString}
stroke={connector.color}
strokeWidth={connectorWidthPx * zoom}
strokeWidth={connectorWidthPx}
strokeLinecap="round"
fill="none"
/>

View File

@@ -51,7 +51,7 @@ export const ConnectorControls = ({ id }: Props) => {
<Slider
marks
step={5}
min={4}
min={5}
max={100}
value={connector.width}
onChange={(e, newWidth) => {