diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-04-17 19:22:08 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-04-17 19:22:08 -0400 |
| commit | b67e1e3c83e06fe7b5dfa4fa75f714121c02ce50 (patch) | |
| tree | 73f4a250bf20794706f8118b231be0574e4751a7 /assets/javascripts/rectangles/map/ui.js | |
| parent | 0010a692359ec6ba90aaf2e20d77bfa4016325d5 (diff) | |
may need to cull more aggressively
Diffstat (limited to 'assets/javascripts/rectangles/map/ui.js')
| -rw-r--r-- | assets/javascripts/rectangles/map/ui.js | 5 |
1 files changed, 3 insertions, 2 deletions
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 } |
