mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 13:20:48 +00:00
Fix sticker pack preview modal scrollbars and modal scroll dividers
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user