diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-10-15 12:36:52 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-10-15 12:36:52 -0400 |
| commit | dd6b2cc2cdd97b6163d115e5415736bccbffa831 (patch) | |
| tree | 79c636d33b01f5ae534136a68f3363977cfa9443 /public/assets/javascripts/rectangles/engine/map/ui_editor.js | |
| parent | d50fa94e9b758270b15dfeb5100063c6d876d64c (diff) | |
get rid of menu options
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/map/ui_editor.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/engine/map/ui_editor.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/public/assets/javascripts/rectangles/engine/map/ui_editor.js b/public/assets/javascripts/rectangles/engine/map/ui_editor.js index 072ff7e..44e416d 100644 --- a/public/assets/javascripts/rectangles/engine/map/ui_editor.js +++ b/public/assets/javascripts/rectangles/engine/map/ui_editor.js @@ -213,7 +213,8 @@ Map.UI.Editor = function(map){ if (intersects.length) { wheelState = wheelState || intersects[0].copy() - intersects[0].height = clamp( ~~(intersects[0].height - deltaY), height_min, height_max ) + intersects[0].height = clamp( ~~(intersects[0].height + deltaY * 2), height_min, height_max ) + app.tube("builder-pick-room", intersects[0]) clearTimeout(wheelTimeout) wheelTimeout = setTimeout(function(){ @@ -224,7 +225,7 @@ Map.UI.Editor = function(map){ }) Rooms.rebuild() wheelState = null - }, 500) + }, 250) } else { map.set_zoom(map.zoom_exponent - deltaY/20) |
