diff --git a/src/utils.js b/src/utils.js index 7109c973b..bd30854dd 100644 --- a/src/utils.js +++ b/src/utils.js @@ -147,10 +147,12 @@ function find(ctx, tagName, iterator) { function getWindowScrollingElement() { - if (IE11OrLess) { - return document.documentElement; + let scrollingElement = document.scrollingElement; + + if (scrollingElement) { + return scrollingElement } else { - return document.scrollingElement; + return document.documentElement } }