diff --git a/src/board/PanZoomRotate.jsx b/src/board/PanZoomRotate.jsx index 8d06ac8..5bc4fdd 100644 --- a/src/board/PanZoomRotate.jsx +++ b/src/board/PanZoomRotate.jsx @@ -66,7 +66,7 @@ const PanZoomRotate = ({ children, moveFirst }) => { }); }, [scale, setDim]); - // Center board on game loading + // Center board on board loading React.useEffect(() => { const { width: innerWidth, diff --git a/src/board/Selector.jsx b/src/board/Selector.jsx index 344bf46..4f56211 100644 --- a/src/board/Selector.jsx +++ b/src/board/Selector.jsx @@ -58,7 +58,7 @@ const Selector = ({ children, moveFirst }) => { const config = useRecoilValue(BoardConfigAtom); - // Reset selection on game loading + // Reset selection on board loading React.useEffect(() => { setSelected(emptySelection); }, [config, emptySelection, setSelected]);