UNPKG

305 BTypeScriptView Raw
1/**
2 * Find the first scrollable parent of an element.
3 *
4 * @param element Starting element
5 * @param firstPossible Stop at the first scrollable parent, even if it's not currently scrollable
6 */
7export default function scrollParent(element: HTMLElement, firstPossible?: boolean): Document | HTMLElement;