mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: allow zooming up to 3000% (#4358)
This commit is contained in:
parent
720588130c
commit
618f204ddd
1 changed files with 1 additions and 1 deletions
|
@ -25,6 +25,6 @@ export const getNewZoom = (
|
||||||
|
|
||||||
export const getNormalizedZoom = (zoom: number): NormalizedZoomValue => {
|
export const getNormalizedZoom = (zoom: number): NormalizedZoomValue => {
|
||||||
const normalizedZoom = parseFloat(zoom.toFixed(2));
|
const normalizedZoom = parseFloat(zoom.toFixed(2));
|
||||||
const clampedZoom = Math.max(0.1, Math.min(normalizedZoom, 10));
|
const clampedZoom = Math.max(0.1, Math.min(normalizedZoom, 30));
|
||||||
return clampedZoom as NormalizedZoomValue;
|
return clampedZoom as NormalizedZoomValue;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue