Update index.php

This commit is contained in:
awesomeuser 2023-08-04 15:20:05 +00:00
parent 57aaa59e3d
commit bbd2b01ca9

View file

@ -136,7 +136,7 @@
var posX = (e.clientX - crect.left) * canvas.width / crect.width - 1; var posX = (e.clientX - crect.left) * canvas.width / crect.width - 1;
var posY = (e.clientY - crect.top) * canvas.height / crect.height - 1; var posY = (e.clientY - crect.top) * canvas.height / crect.height - 1;
debug(posX + " " + posY); console.log(posX + " " + posY);
ctx.putImageData(pen, posX, posY); ctx.putImageData(pen, posX, posY);
} }