aboutsummaryrefslogtreecommitdiff
path: root/js/tools/ZoomTool.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tools/ZoomTool.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 {