diff options
Diffstat (limited to 'assets/javascripts/rectangles/map/ui.js')
| -rw-r--r-- | assets/javascripts/rectangles/map/ui.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/assets/javascripts/rectangles/map/ui.js b/assets/javascripts/rectangles/map/ui.js index 9faebea..f612fe2 100644 --- a/assets/javascripts/rectangles/map/ui.js +++ b/assets/javascripts/rectangles/map/ui.js @@ -58,7 +58,10 @@ map.ui = new function(){ } } - function up (e, cursor) { + function up (e, cursor, new_cursor) { + + new_cursor.x.div(map.zoom).add( map.center.a + map.bounds.a/2 ) + new_cursor.y.div(map.zoom).add( -map.center.b - map.bounds.b/2 ) if (base.creating) { if (cursor.height() != 0 && cursor.width() != 0) { |
