Commit fcbf7830 authored by banzhuanmei's avatar banzhuanmei Committed by 杨奕

Popper: getScrollParent should cover horizontal scroll (#9138)

parent 15d528c7
......@@ -1062,7 +1062,7 @@
if (parent === root.document) {
// Firefox puts the scrollTOp value on `documentElement` instead of `body`, we then check which of them is
// greater than 0 and return the proper element
if (root.document.body.scrollTop) {
if (root.document.body.scrollTop || root.document.body.scrollLeft) {
return root.document.body;
} else {
return root.document.documentElement;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment