From de757cae0a04f78a0f581b50301a5c06db972c77 Mon Sep 17 00:00:00 2001 From: Wouter R Date: Fri, 17 Jan 2014 18:03:42 +0100 Subject: [PATCH] Disable log messages in shape transform functions. --- js/Shape.js | 4 ++-- js/buttonbehaviors.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/Shape.js b/js/Shape.js index 2c859b2..f4d30e0 100644 --- a/js/Shape.js +++ b/js/Shape.js @@ -159,11 +159,11 @@ function reduceTransformToFit(x, y, zf, bounds) { var zxMax = Math.min(zf, canvasWidth / newBounds.width); var zyMax = Math.min(zf, canvasHeight / newBounds.height); - var oldZF = zf; +// var oldZF = zf; // var dir = zf >= 1.0 ? 1 : 0; zf = Math.min(zxMax, zyMax); // if (dir == 1 && zf < 1.0) zf = 1; - console.log("orgZF, zxMax, zyMax, finZF: " + oldZF + ", " + zxMax + ", " + zyMax + ", " + zf); +// console.log("orgZF, zxMax, zyMax, finZF: " + oldZF + ", " + zxMax + ", " + zyMax + ", " + zf); return { x: delta.x, y: delta.y, zf: zf }; } diff --git a/js/buttonbehaviors.js b/js/buttonbehaviors.js index d2b84af..776e7b4 100644 --- a/js/buttonbehaviors.js +++ b/js/buttonbehaviors.js @@ -134,7 +134,7 @@ function initButtonBehavior() { var h = btnMove.height(); var speedX = (cursor.x-w/2)*0.3; var speedY = (cursor.y-h/2)*0.3; - console.log("move speed: ",speedX,speedY); + //console.log("move speed: ",speedX,speedY); moveShape(speedX,speedY); } function onBtnZoom(e,cursor) {