aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorhwc4872012-02-01 14:09:24 -0800
committerhwc4872012-02-01 14:09:24 -0800
commit5a288b9d3f8e6690149978d9d0e7bea98cc81312 (patch)
treeef5cd589cc35b3afc376f37ec41a3e172747f1e3 /js
parent715f95cacead0025a57823e4cefa22e618f15df0 (diff)
downloadninja-5a288b9d3f8e6690149978d9d0e7bea98cc81312.tar.gz
Fix for a marquee zoom bug.
Diffstat (limited to 'js')
-rw-r--r--js/tools/ZoomTool.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/js/tools/ZoomTool.js b/js/tools/ZoomTool.js
index 913dc02a..73297d16 100644
--- a/js/tools/ZoomTool.js
+++ b/js/tools/ZoomTool.js
@@ -240,19 +240,6 @@ exports.ZoomTool = Montage.create(DrawingTool, {
240 var p1 = [this._layerX, this._layerY, 0]; 240 var p1 = [this._layerX, this._layerY, 0];
241 globalPt = vecUtils.vecAdd(3, p0, p1); 241 globalPt = vecUtils.vecAdd(3, p0, p1);
242 vecUtils.vecScale(3, globalPt, 0.5); 242 vecUtils.vecScale(3, globalPt, 0.5);
243
244 var hitRec = snapManager.snap( globalPt[0], globalPt[1], true );
245 if (hitRec)
246 {
247 var elt = hitRec.getElement();
248 if (elt)
249 {
250// console.log( "hit: " + hitRec.getElement().id );
251 var localToGlobalMat = viewUtils.getLocalToGlobalMatrix( elt );
252 var localPt = hitRec.calculateElementPreTransformScreenPoint();
253 globalPt = MathUtils.transformAndDivideHomogeneousPoint( localPt, localToGlobalMat );
254 }
255 }
256 } 243 }
257 else if (this._mode === "doubleClickReset") 244 else if (this._mode === "doubleClickReset")
258 { 245 {