hongluan-ui
Version:
Hongluan Component Library for Vue 3
10 lines (9 loc) • 532 B
TypeScript
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;