feat: limit scroll in componentDidUpdate

This commit is contained in:
Arnošt Pleskot 2023-07-04 16:49:00 +02:00
parent 209934c90a
commit 2998573e79
No known key found for this signature in database
2 changed files with 72 additions and 81 deletions

View file

@ -60,3 +60,8 @@ export type ScrollBars = {
height: number;
} | null;
};
export type ConstrainedScrollValues = Pick<
AppState,
"scrollX" | "scrollY" | "zoom"
> | null;