@synergy-design-system/components
Version:
This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define
16 lines (15 loc) • 790 B
TypeScript
/**
* ---------------------------------------------------------------------
* 🔒 AUTOGENERATED BY VENDORISM
* Removing this comment will prevent it from being managed by it.
* ---------------------------------------------------------------------
*/
/**
* Wait until an element has stopped scrolling
* This considers the element to have stopped scrolling, as soon as it did not change its
* scroll position for 20 successive animation frames
* @param {HTMLElement} element - The element which is scrolled
* @param {numeric} timeoutInMs - A timeout in ms. If the timeout has elapsed, the promise rejects
* @returns A promise which resolves after the scrolling has stopped
*/
export declare const waitForScrollingToEnd: (element: Element, timeoutInMs?: number) => Promise<void>;