@ohu-mobile/core
Version:
7 lines (6 loc) • 509 B
TypeScript
export declare function getScrollTop(element: Element | Window): number;
export declare function getClientHeight(element: Element | Window): number;
export declare function getScrollHeight(element: HTMLElement): number;
export declare function getTopOffsetOfWrapperAndInner(wrapper: Element | Window, inner: Element): number;
export declare function isElementSticky(scroller: Element | Window, el: Element): boolean;
export declare function reachBottom(element: Element | Window, distance?: number): boolean;