UNPKG

@nipe-solutions/react-spring-bottom-sheet

Version:
11 lines (10 loc) 481 B
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;