Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #1779 Chrome 61 has document.scrollingElement = document.document…
…Element In Chrome 61, as specified in https://blog.chromium.org/2017/08/chrome-61-beta-javascript-modules.html: To align with the spec and preserve browser consistency, the scrollingElement is now the documentElement in standards mode. This commit fixes the problems caused by this change in Chrome 61 by first using document.scrollingElement before relying on a browser-dependent logic to determine which is the scrolling element.
- Loading branch information