mirror of https://github.com/sveltejs/svelte
[docs] Fix a minor bug in binding tutorial (#6698)
To calculate y coordinate of `imageData`, we should divide the index with `canvas.width` not with `canvas.height`. The current code works because the shape of canvas is square.pull/6700/head
parent
4d30ef34e3
commit
dc11e4487e
Loading…
Reference in new issue