@ebay/ebayui-core
Version:
Collection of core eBay components; considered to be the building blocks for all composite structures, pages & apps.
10 lines (9 loc) • 383 B
TypeScript
/**
* Checks on an interval to see if the element is scrolling.
* When the scrolling has finished it then calls the function.
*
* @param el The element that scrolls.
* @param fn The function to call after scrolling completes.
* @return A function to cancel the scroll listener.
*/
export declare function onScrollEnd(el: HTMLElement, fn: (offet: number) => void): () => void;