fix restoring appState (#2182)
This commit is contained in:
@ -3927,7 +3927,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
||||
this.setState({ shouldCacheIgnoreZoom: false });
|
||||
}, 300);
|
||||
|
||||
private getCanvasOffsets() {
|
||||
private getCanvasOffsets(): Pick<AppState, "offsetTop" | "offsetLeft"> {
|
||||
if (this.excalidrawRef?.current) {
|
||||
const parentElement = this.excalidrawRef.current.parentElement;
|
||||
const { left, top } = parentElement.getBoundingClientRect();
|
||||
|
Reference in New Issue
Block a user