mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-10 02:49:57 +02:00
feat: increase max zoom (#2881)
This commit is contained in:
@@ -25,6 +25,6 @@ export const getNewZoom = (
|
||||
|
||||
export const getNormalizedZoom = (zoom: number): NormalizedZoomValue => {
|
||||
const normalizedZoom = parseFloat(zoom.toFixed(2));
|
||||
const clampedZoom = Math.max(0.1, Math.min(normalizedZoom, 2));
|
||||
const clampedZoom = Math.max(0.1, Math.min(normalizedZoom, 10));
|
||||
return clampedZoom as NormalizedZoomValue;
|
||||
};
|
||||
|
Reference in New Issue
Block a user