Fixed adding touch detection canvas to document

This commit is contained in:
Nathan Dinsmore 2014-05-30 18:35:03 -04:00
parent bc9e937b06
commit 968baec89f

View file

@ -251,7 +251,6 @@ Sprite.prototype.onClick = function(evt) {
ctx.scale(scale, scale);
ctx.translate(-rotationCenterX, -rotationCenterY);
ctx.drawImage(this.mesh, 0, 0);
document.body.appendChild(canv);
var idata = ctx.getImageData(mouseX, mouseY, 1, 1).data;
var alpha = idata[3];