diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-03-31 12:47:57 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-03-31 12:47:57 -0400 |
| commit | afb2ea801a67f2398ec69afa7218a9c696431206 (patch) | |
| tree | ed0781d452ada7dea611984831a43d1b386482d3 /public/assets/test/ortho.html | |
| parent | 88b627d45cb1db4991ee8ff17eb37293771aecf9 (diff) | |
| parent | 4b794104e86b74c531e35443cf23ce8cf144d505 (diff) | |
Merge branch 'subscriptions' of github.com:okfocus/vvalls into subscriptions
Diffstat (limited to 'public/assets/test/ortho.html')
| -rw-r--r-- | public/assets/test/ortho.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/public/assets/test/ortho.html b/public/assets/test/ortho.html index 1ca7e06..2257006 100644 --- a/public/assets/test/ortho.html +++ b/public/assets/test/ortho.html @@ -99,6 +99,15 @@ Map.UI.Ortho = function(map){ new_cursor.y.div(map.dimensions.b).sub(0.5).mul(map.dimensions.b / map.zoom).sub(map.center.b) } }) + + base.wheel = new wheel({ + el: map.el, + update: mousewheel, + }) + + function mousewheel (e, deltaY, deltaX){ + map.set_zoom(map.zoom_exponent - deltaY/20) + } } var scene, map, controls |
