From 63cfe69b5e4a5bfb4e781fa7042aec72709f7d76 Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Wed, 15 Oct 2014 00:16:25 -0700 Subject: [PATCH] disable auto-solving if shift held --- web/app/canvas.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/canvas.js b/web/app/canvas.js index 0f77aac1..8f15f0a0 100644 --- a/web/app/canvas.js +++ b/web/app/canvas.js @@ -622,7 +622,9 @@ TCAD.TWO.DragTool.prototype.mousemove = function(e) { var checkX = this.ref.x; var checkY = this.ref.y; this.obj.translate(dx, dy); - this.solveRequest(2); + if (!e.shiftKey) { + this.solveRequest(2); + } this.errorX = (this.ref.x - dx) - checkX; this.errorY = (this.ref.y - dy) - checkY;