UNPKG

@qvant/qui-max

Version:

A Vue 3 Design system for Web.

8 lines (7 loc) 424 B
import getComputedStyle from "./getComputedStyle.js"; function isScrollParent(element) { var _getComputedStyle = getComputedStyle(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY; return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX); } export { isScrollParent as default }; //# sourceMappingURL=isScrollParent.js.map