Readonly defaults to the hand tool (#2833)

#2720 
This PR makes it so that the editor defaults to the hand tool in read
only mode

### Change Type

- [x] `minor` — New feature


### Test Plan

1. Open the editor in readonly mode
2. It should default to the hand tool

### Release Notes

- Shared projects in  read only mode now default to the hand tool
This commit is contained in:
Taha 2024-02-14 15:07:25 +00:00 committed by GitHub
parent f9f5c6afcb
commit 7caaa2fbbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,6 +67,7 @@ export function MultiplayerEditor({
store={storeWithStatus}
assetUrls={assetUrls}
onMount={handleMount}
initialState={isReadOnly ? 'hand' : 'select'}
overrides={[
sharingUiOverrides,
fileSystemUiOverrides,