UNPKG

@qntm-code/utils

Version:

A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.

7 lines (6 loc) 371 B
/** * Gets the scrollable parent element of a given element * @param x: Optional. Whether to check if the element can scroll on the x axis. Default: true * @param y: Optional. Whether to check if the element can scroll on the y axis. Default: true */ export declare function getScrollParent(element: HTMLElement | null, x?: boolean, y?: boolean): HTMLElement | null;