title: Mousewheel event in modern browsers
body: <p>I'd like to have clean and nice JavaScript for mousewheel event, supporting only the latest version of common browsers without legacy code for obsolete versions, without any JS framework.</p>
  
  <p>Mousewheel event is nicely explained <a href="http://www.adomas.org/javascript-mouse-wheel/" rel="noreferrer">here</a>. How to simplify it for the current latest versions of the browsers?</p>
  
  <p>I don't have access to all browsers to test it, so <a href="http://caniuse.com/#cats=JS_API" rel="noreferrer">caniuse.com</a> is a great help to me. Alas, mousewheel is not mentioned there.</p>
  
  <p>Based on Derek's comment, I wrote this solution. Is it valid for all browsers?</p>
  
  <pre><code>someObject.addEventListener("onwheel" in document ? "wheel" : "mousewheel", function(e) {
    e.wheel = e.deltaY ? -e.deltaY : e.wheelDelta/40;
    // custom code
  });
  </code></pre>