I'm not sure why the resize_canvas function was written, but it hasn't been working correctly in a long time, and I just discovered that if we simply remove it, the canvas will rescale itself correctly on its own.
I'm also recommending people install specifically version 0.2.84 of wasm-bindgen-cli or else there will be errors generating the JavaScript bindings.
I'm not sure why the
resize_canvas
function was written, but it hasn't been working correctly in a long time, and I just discovered that if we simply remove it, the canvas will rescale itself correctly on its own.I'm also recommending people install specifically version 0.2.84 of wasm-bindgen-cli or else there will be errors generating the JavaScript bindings.