diff --git a/README.md b/README.md index 55a18daa..fc708b10 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ The PCBViewer component accepts these props: - `onEditEventsChanged`: Callback when edit events change - `onBoundsSelected`: Callback when the Bounds tool completes a rectangle selection. Receives `{ minX, minY, maxX, maxY }`. - `initialState`: Initial state for the viewer +- `focusOnHover`: Focus the viewer when the pointer hovers it. Set `focusOnHover={false}` to keep hover focus disabled. ### Features diff --git a/src/examples/2025/board.fixture.tsx b/src/examples/2025/board.fixture.tsx index 65ae1b74..2923c3f2 100644 --- a/src/examples/2025/board.fixture.tsx +++ b/src/examples/2025/board.fixture.tsx @@ -112,7 +112,7 @@ export const AtariBoard = () => { ) } -export const DisabledAutoFocus = () => { +export const FocusOnHoverDisabled = () => { const circuit = new Circuit() circuit.add() @@ -121,7 +121,7 @@ export const DisabledAutoFocus = () => { return (
- +
) }