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/7738/head
parent
f8e5d60289
commit
e9da0eb4d4
Loading…
Reference in new issue