@nipe-solutions/react-spring-bottom-sheet
Version:
Accessible and composable bottom sheets for React
11 lines (10 loc) • 481 B
TypeScript
export type GestureOwner = 'sheet' | 'content';
export interface ScrollBoundaryInput {
deltaY: number;
scrollTop: number;
scrollHeight: number;
clientHeight: number;
startedOnHandle: boolean;
}
export declare function decideGestureOwner({ deltaY, scrollTop, scrollHeight, clientHeight, startedOnHandle, }: ScrollBoundaryInput): GestureOwner;
export declare function findScrollableAncestor(target: EventTarget | null, boundary: HTMLElement): HTMLElement | null;