UNPKG

hongluan-ui

Version:
10 lines (9 loc) 532 B
export declare const isScroll: (el: HTMLElement, isVertical?: boolean) => boolean; export declare const getScrollContainer: (el: HTMLElement, isVertical?: boolean) => Window | HTMLElement | undefined; export declare const getScrollBarWidth: () => number; /** * Scroll with in the container element, positioning the **selected** element at the top * of the container */ export declare function scrollIntoView(container: HTMLElement, selected: HTMLElement): void; export declare function isScrollingUp(event: WheelEvent): boolean;