From c40e1e901f0d51e48be4dffafad9c3b1039a9fd2 Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Wed, 11 Jun 2014 00:24:33 -0400 Subject: wire up layout index modals --- public/assets/javascripts/rectangles/engine/map/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/assets/javascripts/rectangles/engine') diff --git a/public/assets/javascripts/rectangles/engine/map/ui.js b/public/assets/javascripts/rectangles/engine/map/ui.js index 63e8e18..97baf88 100644 --- a/public/assets/javascripts/rectangles/engine/map/ui.js +++ b/public/assets/javascripts/rectangles/engine/map/ui.js @@ -26,7 +26,7 @@ var MapUI = function(map){ cursor.y.div(h).sub(0.5).mul(map.bounds.b / map.zoom).sub(map.center.b) if (e.ctrlKey || e.which === 3) { - cursor.quantize(1) + cursor.quantize(1/map.zoom) map.center.a = cursor.x.a map.center.b = -cursor.y.a console.log(map.center+"") @@ -52,7 +52,7 @@ var MapUI = function(map){ } if (e.shiftKey && base.dragging) { - base.dragging.rect.quantize(10) + base.dragging.rect.quantize(10/map.zoom) } } -- cgit v1.2.3-70-g09d2