未验证 提交 de5e7a45 编写于 作者: O owen-m1 提交者: GitHub

Merge pull request #1647 from pangjian/master

Fix(utils): Chrome < 44 not support scrollingElement
......@@ -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
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册