main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 2 weeks ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
440 bytes
|
Line | |
---|
1 | import getComputedStyle from "./getComputedStyle.js";
|
---|
2 | export default function isScrollParent(element) {
|
---|
3 | // Firefox wants us to check `-x` and `-y` variations as well
|
---|
4 | var _getComputedStyle = getComputedStyle(element),
|
---|
5 | overflow = _getComputedStyle.overflow,
|
---|
6 | overflowX = _getComputedStyle.overflowX,
|
---|
7 | overflowY = _getComputedStyle.overflowY;
|
---|
8 |
|
---|
9 | return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
---|
10 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.