mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00

React.set{State,Props} is supposed to be buffered and only actually trigger a re-render once per animation frame, but ends up still doing a lot of mysterious and expensive things. We can't tolerate that in our event handlers (especially scoll handlers) so instead this commit ensures that they will only happen once and on the next animation frame.