10 lines
230 B
JavaScript
10 lines
230 B
JavaScript
|
export function isFixedPosition(el) {
|
||
|
while (el) {
|
||
|
if (window.getComputedStyle(el).position === 'fixed') {
|
||
|
return true;
|
||
|
}
|
||
|
el = el.offsetParent;
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
//# sourceMappingURL=isFixedPosition.mjs.map
|