mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: add width, height as props to App.tsx (#1871)
This commit is contained in:
parent
b1261eea70
commit
9351b2821c
9 changed files with 184 additions and 27 deletions
|
@ -16,8 +16,8 @@ export const actionGoToCollaborator = register({
|
|||
return {
|
||||
appState: {
|
||||
...appState,
|
||||
scrollX: normalizeScroll(window.innerWidth / 2 - point.x),
|
||||
scrollY: normalizeScroll(window.innerHeight / 2 - point.y),
|
||||
scrollX: normalizeScroll(appState.width / 2 - point.x),
|
||||
scrollY: normalizeScroll(appState.height / 2 - point.y),
|
||||
// Close mobile menu
|
||||
openMenu: appState.openMenu === "canvas" ? null : appState.openMenu,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue