Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

feat: allow zooming up to 3000% (#4358)

David Luzar618f204dddd7
diff --git a/src/scene/zoom.ts b/src/scene/zoom.ts
index 0a36418dff..6ca292e070 100644
--- a/src/scene/zoom.ts
+++ b/src/scene/zoom.ts
@@ -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, 10));
+ const clampedZoom = Math.max(0.1, Math.min(normalizedZoom, 30));
return clampedZoom as NormalizedZoomValue;
};