mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-14 09:45:27 +01:00
feat: support props.activeTool
This commit is contained in:
@@ -1903,6 +1903,13 @@ class App extends React.Component<AppProps, AppState> {
|
||||
this.refreshDeviceState(this.excalidrawContainerRef.current);
|
||||
}
|
||||
|
||||
if (
|
||||
this.props.activeTool &&
|
||||
this.props.activeTool.type !== this.state.activeTool.type
|
||||
) {
|
||||
this.setActiveTool(this.props.activeTool);
|
||||
}
|
||||
|
||||
if (
|
||||
prevState.scrollX !== this.state.scrollX ||
|
||||
prevState.scrollY !== this.state.scrollY
|
||||
|
||||
Reference in New Issue
Block a user