From 5a288b9d3f8e6690149978d9d0e7bea98cc81312 Mon Sep 17 00:00:00 2001 From: hwc487 Date: Wed, 1 Feb 2012 14:09:24 -0800 Subject: Fix for a marquee zoom bug. --- js/tools/ZoomTool.js | 13 ------------- 1 file changed, 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, { var p1 = [this._layerX, this._layerY, 0]; globalPt = vecUtils.vecAdd(3, p0, p1); vecUtils.vecScale(3, globalPt, 0.5); - - var hitRec = snapManager.snap( globalPt[0], globalPt[1], true ); - if (hitRec) - { - var elt = hitRec.getElement(); - if (elt) - { -// console.log( "hit: " + hitRec.getElement().id ); - var localToGlobalMat = viewUtils.getLocalToGlobalMatrix( elt ); - var localPt = hitRec.calculateElementPreTransformScreenPoint(); - globalPt = MathUtils.transformAndDivideHomogeneousPoint( localPt, localToGlobalMat ); - } - } } else if (this._mode === "doubleClickReset") { -- cgit v1.2.3