MLH-Fellowship / scheduling-profiler-prototype

Custom profiler prototype for React's concurrent mode
https://react-scheduling-profiler.vercel.app/
6 stars 0 forks source link

Normalize wheel behavior across browsers #117

Closed taneliang closed 4 years ago

taneliang commented 4 years ago

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

vercel[bot] commented 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