summaryrefslogtreecommitdiff
path: root/assets/javascripts/rectangles/map/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/javascripts/rectangles/map/ui.js')
-rw-r--r--assets/javascripts/rectangles/map/ui.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/assets/javascripts/rectangles/map/ui.js b/assets/javascripts/rectangles/map/ui.js
index 4e03125..caa2a81 100644
--- a/assets/javascripts/rectangles/map/ui.js
+++ b/assets/javascripts/rectangles/map/ui.js
@@ -2,6 +2,8 @@
map.ui = new function(){
var base = this
+ var height_min = 200,
+ height_max = 2000
base.creating = base.dragging = false
@@ -96,7 +98,7 @@ map.ui = new function(){
})
if (intersects.length) {
- intersects[0].height = clamp( ~~(intersects[0].height - delta), 200, 800 )
+ intersects[0].height = clamp( ~~(intersects[0].height - delta), height_min, height_max )
clipper.update()
}
else {