Changed main-canvas to drawing-canvas

This commit is contained in:
juliandescottes
2012-09-05 00:13:45 +02:00
parent 1de9ee41b2
commit 53436009e3
3 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@
ns.DrawingController.prototype.createMainCanvas = function () {
var mainCanvas = this.createCanvas();
mainCanvas.className = "canvas-main";
mainCanvas.className = "drawing-canvas";
this.container.appendChild(mainCanvas);
return mainCanvas;
};

View File

@@ -263,7 +263,7 @@ $.namespace("pskl");
},
getRelativeCoordinates : function (x, y) {
var canvasRect = $(".canvas-main")[0].getBoundingClientRect();
var canvasRect = $(".drawing-canvas")[0].getBoundingClientRect();
return {
x : x - canvasRect.left,
y : y - canvasRect.top