Fix sticker pack preview modal scrollbars and modal scroll dividers
This commit is contained in:
parent
c2ad69951f
commit
ce28993c78
5 changed files with 35 additions and 28 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue