Add supporting themes required for Lotusdocs
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// @flow
|
||||
import getComputedStyle from './getComputedStyle';
|
||||
|
||||
export default function isScrollParent(element: HTMLElement): boolean {
|
||||
// Firefox wants us to check `-x` and `-y` variations as well
|
||||
const { overflow, overflowX, overflowY } = getComputedStyle(element);
|
||||
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
||||
}
|
||||
Reference in New Issue
Block a user