Skip to content

Commit fbf1278

Browse files
author
Chris Sevilleja
authored
Update App.js
1 parent 5c28b13 commit fbf1278

File tree

1 file changed

+1
-1
lines changed
  • moving-box-link/finished/src

1 file changed

+1
-1
lines changed

moving-box-link/finished/src/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function App() {
2020
// move the box if x or y changes
2121
useEffect(() => {
2222
const context = canvasRef.current.getContext('2d');
23-
context.clearRect(0, 0, window.innerHeight, window.innerWidth);
23+
context.clearRect(0, 0, window.innerWidth, window.innerHeight);
2424
// context.fillRect(x, y, 100, 100);
2525

2626
let theLinkRef;

0 commit comments

Comments
 (0)