scrollParent.d.ts 305 Bytes
Newer Older
Sangjune Bae's avatar
Sangjune Bae committed
1
2
3
4
5
6
7
/**
 * 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;