Ajout des modules
All checks were successful
Déploiement DEV / deploy (push) Successful in 9s

This commit is contained in:
Christian CUNAT-BRULE
2026-08-06 20:51:00 +02:00
parent 4739a83d2c
commit 5db1c28fd8
2477 changed files with 74218 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
import getComputedStyle from "./getComputedStyle.js";
export default function isScrollParent(element) {
// Firefox wants us to check `-x` and `-y` variations as well
var _getComputedStyle = getComputedStyle(element),
overflow = _getComputedStyle.overflow,
overflowX = _getComputedStyle.overflowX,
overflowY = _getComputedStyle.overflowY;
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
}