The mouse wheel zoom (y axis).
Download this and wheelevent.js, or install by
bower install wheelzoom.js
then
<script src="wheelevent.js"></script>
<script src="wheelzoom.js"></script>
<script>
window.onload = function(){
var target = document.getElementById('target');
var parent = target.parentNode;
wheelzoom(target, parent); // parent is optional; default = target.parentNode
};
</script>
- IE5+(checked by IE11 emulate)
- Firefox
- Google Chrome
(C) 2015 Narazaka : Licensed under The MIT License - http://narazaka.net/license/MIT?2015