Initial commit

This commit is contained in:
Marek Lesko
2025-08-19 16:58:51 +02:00
commit a2f7e2285a
908 changed files with 160315 additions and 0 deletions

View File

@@ -0,0 +1 @@
import getScrollParent from"./getScrollParent.js";import getParentNode from"./getParentNode.js";import getWindow from"./getWindow.js";import isScrollParent from"./isScrollParent.js";export default function listScrollParents(t,o){void 0===o&&(o=[]);var r=getScrollParent(t),t=r===(null==(t=t.ownerDocument)?void 0:t.body),e=getWindow(r),e=t?[e].concat(e.visualViewport||[],isScrollParent(r)?r:[]):r,r=o.concat(e);return t?r:r.concat(listScrollParents(getParentNode(e)))}