mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
7789a32438
Newer versions of WebKit and Blink will support both `document.body.scrollTop` and `document.documentElement.scrollTop`. Therefore, implementing cross-browser compatibility by summing the two will no longer work. This changes React to use `getUnboundedScrollPosition` so we get the fix and consistency in one change! See: https://rniwa.com/2013-10-29/web-compatibility-story-of-scrolltop-and-scrollleft/