summaryrefslogtreecommitdiff
path: root/public/assets/test/ortho.html
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-03-31 12:44:28 -0400
committerJules Laplace <jules@okfoc.us>2015-03-31 12:44:28 -0400
commit4b794104e86b74c531e35443cf23ce8cf144d505 (patch)
treeae2557a2de7a213a2eb002365ea0203e5b186e79 /public/assets/test/ortho.html
parent835fbcd8b47715d34d17b784409db1d45f992c29 (diff)
etc
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