From 968baec89f70e1f3eb5b8835895f878ad83aa349 Mon Sep 17 00:00:00 2001 From: Nathan Dinsmore Date: Fri, 30 May 2014 18:35:03 -0400 Subject: [PATCH] Fixed adding touch detection canvas to document --- js/Sprite.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/Sprite.js b/js/Sprite.js index 4fb17d2..bc01995 100644 --- a/js/Sprite.js +++ b/js/Sprite.js @@ -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];