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

@ -127,7 +127,7 @@ ul, li {
z-index: 1; z-index: 1;
} }
.canvas-main { .drawing-canvas {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;

View File

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

View File

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