diff --git a/client/src/Board.js b/client/src/Board.js index 60f4664..bc53169 100644 --- a/client/src/Board.js +++ b/client/src/Board.js @@ -480,8 +480,9 @@ const Board = ({ game }) => { } canvasRef.current.updateSizeTimer = 0; - window.requestAnimationFrame(drawFrame); }, 250); + + window.requestAnimationFrame(drawFrame); }, [ drawFrame, setMinSize ]); const updateGame = useCallback((game) => { @@ -519,7 +520,6 @@ const Board = ({ game }) => { canvas.addEventListener('touchmove', mouseMove); window.addEventListener('resize', updateDimensions); - console.log("useEffect()"); updateDimensions(); return () => {