In Rust WASM Game of Life tutorial, can't get the mouse click event to work

310 views Asked by At

Problem: Can't seem to get the mouse click toggle event working. On clicking, a live cell should turn dead and a dead cell should turn alive.

I have uploaded the Rust/WASM Game of Life tutorial project in this Github Repo for those who want to find the issue. PRs are welcome.

For the ones who don't know about the tutorial, click here to know more.

1

There are 1 answers

0
arnabanimesh On

My bad. Just changed the variable name from CanvasRight to CanvasTop in www/index.js and it is working now.