From 618f204dddd7b6309d10efa8b9227c71e11c99e7 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Sat, 4 Dec 2021 14:51:28 +0100 Subject: [PATCH] feat: allow zooming up to 3000% (#4358) --- src/scene/zoom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scene/zoom.ts b/src/scene/zoom.ts index 0a36418d..6ca292e0 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; };