offsetHeight fix
This commit is contained in:
parent
ad0130e1de
commit
3d12db5096
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@
|
|||
|
||||
function draw(e) {
|
||||
var posX = e.offsetX * canvas.width / canvas.offsetWidth - 1;
|
||||
var posY = e.offsetY * canvas.height / canvas.offsetWidth - 1;
|
||||
var posY = e.offsetY * canvas.height / canvas.offsetHeight - 1;
|
||||
|
||||
ctx.putImageData(pen, posX, posY);
|
||||
}
|
||||
|
|
Reference in a new issue