GoScrobble/web/node_modules/dom-helpers/esm/scrollParent.d.ts

8 lines
305 B
TypeScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
/**
* Find the first scrollable parent of an element.
*
* @param element Starting element
* @param firstPossible Stop at the first scrollable parent, even if it's not currently scrollable
*/
export default function scrollParent(element: HTMLElement, firstPossible?: boolean): Document | HTMLElement;