summaryrefslogtreecommitdiff
path: root/assets/javascripts/rectangles
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-04-23 17:43:16 -0400
committerJules Laplace <jules@okfoc.us>2014-04-23 17:43:16 -0400
commit1f434dfedae0f57c0b74978a6c5c144e34287501 (patch)
tree4eff8ebbc21ac58e0f8aec488b98a7cacc00d569 /assets/javascripts/rectangles
parent7c82721449b09496ad4e33c04513e4253482f457 (diff)
parentcff4cde6825a1af9c36fda1467cd118bbdc231eb (diff)
Merge branch 'master' of github.com:okfocus/vvalls
Diffstat (limited to 'assets/javascripts/rectangles')
-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 {