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.
My bad. Just changed the variable name from
CanvasRight
toCanvasTop
inwww/index.js
and it is working now.