Update index.php
This commit is contained in:
parent
d701d044a0
commit
e88d1358bc
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@
|
||||||
var posX = e.offsetX * canvas.width / crect.width - 1;
|
var posX = e.offsetX * canvas.width / crect.width - 1;
|
||||||
var posY = e.offsetY * canvas.height / crect.height - 1;
|
var posY = e.offsetY * canvas.height / crect.height - 1;
|
||||||
|
|
||||||
console.log(posX + " " + posY);
|
console.log(canvas.width + " : " + crect.width);
|
||||||
|
|
||||||
ctx.putImageData(pen, posX, posY);
|
ctx.putImageData(pen, posX, posY);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue