[debug]
This commit is contained in:
parent
6711735b27
commit
b0cdd00c2a
@ -8358,7 +8358,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
width: AppState["width"],
|
||||
height: AppState["height"],
|
||||
) => {
|
||||
const DEFAULT_VIEWPORT_ZOOM_FACTOR = 0.2;
|
||||
const DEFAULT_VIEWPORT_ZOOM_FACTOR = 0.7;
|
||||
|
||||
const lockZoom = scrollConstraints.lockZoom ?? false;
|
||||
const viewportZoomFactor = scrollConstraints.viewportZoomFactor
|
||||
|
@ -731,6 +731,13 @@ const ExcalidrawWrapper = () => {
|
||||
/>
|
||||
);
|
||||
}}
|
||||
scrollConstraints={{
|
||||
x: 0,
|
||||
y: 0,
|
||||
width: 2560,
|
||||
height: 1300,
|
||||
lockZoom: true,
|
||||
}}
|
||||
>
|
||||
<AppMainMenu
|
||||
setCollabDialogShown={setCollabDialogShown}
|
||||
|
@ -101,7 +101,7 @@ const ExcalidrawBase = (props: ExcalidrawProps) => {
|
||||
onPointerUpdate={onPointerUpdate}
|
||||
renderTopRightUI={renderTopRightUI}
|
||||
langCode={langCode}
|
||||
viewModeEnabled={viewModeEnabled || !!scrollConstraints}
|
||||
viewModeEnabled={viewModeEnabled /* || !!scrollConstraints */}
|
||||
zenModeEnabled={zenModeEnabled}
|
||||
gridModeEnabled={gridModeEnabled}
|
||||
libraryReturnUrl={libraryReturnUrl}
|
||||
|
Loading…
x
Reference in New Issue
Block a user