e83f71583c526b625a6142992c0e6f1ef686d96b901eef28acc3261ca56d4e0f67bbab7fcc60166f486396c92b7abb04f55e9da54d9e4be3b8bde2491bb210 591 B

1234567891011121314151617181920212223
  1. # Normalize Wheel
  2. Mouse wheel normalization across multiple multiple browsers.
  3. ## Original source
  4. This code is extracted and from Facebook's [Fixed Data Table](https://github.com/facebook/fixed-data-table). Apart from import fixes, the code is unmodified.
  5. ## Usage
  6. Just add it as an dependency in npm.
  7. You can use it as follows:
  8. ```js
  9. import normalizeWheel from 'normalize-wheel';
  10. document.addEventListener('mousewheel', function (event) {
  11. const normalized = normalizeWheel(event);
  12. console.log(normalized.pixelX, normalized.pixelY);
  13. });
  14. ```
  15. ## License
  16. See the `LICENSE` file.