From b67e1e3c83e06fe7b5dfa4fa75f714121c02ce50 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 17 Apr 2014 19:22:08 -0400 Subject: may need to cull more aggressively --- assets/javascripts/rectangles/map/ui.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'assets/javascripts/rectangles/map/ui.js') diff --git a/assets/javascripts/rectangles/map/ui.js b/assets/javascripts/rectangles/map/ui.js index ef96217..6560695 100644 --- a/assets/javascripts/rectangles/map/ui.js +++ b/assets/javascripts/rectangles/map/ui.js @@ -26,11 +26,12 @@ map.ui = new function(){ cursor.x.div(map.zoom).add( map.center.a + map.bounds.a/2 ) cursor.y.div(map.zoom).add( -map.center.b - map.bounds.b/2 ) - if (e.ctrlKey) { + if (e.ctrlKey || e.which === 3) { map.center.a = cursor.x.b = cursor.x.a + map.bounds.a/2 - map.center.b = cursor.y.b = cursor.y.a + map.center.b = cursor.y.b = cursor.y.a + map.bounds.b base.mouse.down = false e.preventDefault() + e.stopPropagation() return } -- cgit v1.2.3-70-g09d2