Closed taneliang closed 4 years ago
This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/mlh-fellowship/scheduling-profiler-prototype/gk202wk5y ✅ Preview: https://scheduling-profiler-prototype-git-eliang-normalize-wheel.mlh-fellowship.vercel.app
Scrolling/zooming on Firefox was very slow compared to Chrome. This PR fixes it by using some old Facebook code that normalizes the wheel deltas.
Uses https://github.com/facebookarchive/fixed-data-table/blob/master/src/vendor_upstream/dom/normalizeWheel.js. I removed all the stuff that supports legacy wheel events since we can safely target the newest browsers, and the wheel event has been standardized for a long time anyway.
Test Plan
yarn flow
yarn start
with manual test by scrolling around: