mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2025-12-25 15:39:35 -05:00
fix: corrects connector width issue on zoom
This commit is contained in:
@@ -69,7 +69,7 @@ export const Connector = ({ connector }: Props) => {
|
||||
<polyline
|
||||
points={pathString}
|
||||
stroke={connector.color}
|
||||
strokeWidth={connectorWidthPx * zoom}
|
||||
strokeWidth={connectorWidthPx}
|
||||
strokeLinecap="round"
|
||||
fill="none"
|
||||
/>
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user