diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-04-22 13:12:02 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-04-22 13:12:02 -0400 |
| commit | d08f365e4deb3206fd3361c7395268983510d831 (patch) | |
| tree | 99c4e32a6af0544b573b4f82aa6d2d48c900a524 /assets/javascripts/rectangles/map/ui.js | |
| parent | e44f2ae20b96a6d5692bab56cab7452f6ad3d804 (diff) | |
wheel zoom
Diffstat (limited to 'assets/javascripts/rectangles/map/ui.js')
| -rw-r--r-- | assets/javascripts/rectangles/map/ui.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/assets/javascripts/rectangles/map/ui.js b/assets/javascripts/rectangles/map/ui.js index e7d2cf7..4e03125 100644 --- a/assets/javascripts/rectangles/map/ui.js +++ b/assets/javascripts/rectangles/map/ui.js @@ -99,6 +99,9 @@ map.ui = new function(){ intersects[0].height = clamp( ~~(intersects[0].height - delta), 200, 800 ) clipper.update() } + else { + map.set_zoom(map.zoom_exponent - delta/20) + } } function rightclick (e){ |
