b94d716d454912b94047a1e74f487e4388dd3639230faa5d90db787a79db196cc1e4d22f382b3ea6aea37b235dd29e2f129181ba72f36d943f97b3508cdba0 594 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-es';
  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.