code: function WheelListener(elem, callback, useCapture) {
    var eventName = getEventName();
  
    if (eventName === 'wheel') {
      this._fun = callback;
      this._elem = elem;
      this._elem.addEventListener('wheel', this._fun, useCapture);
    } else if (eventName === 'mousewheel') {
      this._fun = fallbackHandler(callback);
      this._elem = elem;
      this._elem.addEventListener('mousewheel', this._fun, useCapture);
    } else {
      throw new Error('Browser does not support mouse wheel events');
    }
  }
docs: Cross-browser mouse wheel event listener. Adapted from: https://developer.mozilla.org/en-US/docs/Web/Events/wheel This version requires eventShim.