Fix sticker pack preview modal scrollbars and modal scroll dividers

This commit is contained in:
Jamie Kyle 2023-08-10 13:40:05 -07:00 committed by Jamie Kyle
parent c2ad69951f
commit ce28993c78
5 changed files with 35 additions and 28 deletions

View file

@ -93,11 +93,10 @@ export function SizeObserver({
return children(ref, size);
}
export type Scroll = Readonly<{
scrollTop: number;
scrollHeight: number;
clientHeight: number;
}>;
// Note: You should just be able to pass an element into utils if you want.
export type Scroll = Readonly<
Pick<Element, 'scrollTop' | 'scrollHeight' | 'clientHeight'>
>;
export type ScrollChangeHandler = (scroll: Scroll) => void;