summaryrefslogtreecommitdiff
path: root/public/assets/test/ortho.html
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-03-31 12:47:57 -0400
committerJules Laplace <jules@okfoc.us>2015-03-31 12:47:57 -0400
commitafb2ea801a67f2398ec69afa7218a9c696431206 (patch)
treeed0781d452ada7dea611984831a43d1b386482d3 /public/assets/test/ortho.html
parent88b627d45cb1db4991ee8ff17eb37293771aecf9 (diff)
parent4b794104e86b74c531e35443cf23ce8cf144d505 (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.html9
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