From 1a19e9849f444f53a816aff27906b2771ae74361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 7 Dec 2022 23:34:17 +0100 Subject: [PATCH] settings: min/max zoom --- src/components/SVGContent.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/SVGContent.svelte b/src/components/SVGContent.svelte index 5d2604f..f18fbe3 100644 --- a/src/components/SVGContent.svelte +++ b/src/components/SVGContent.svelte @@ -99,8 +99,8 @@ // PanZoom const pz = createPanZoom(root, { smoothScroll: false, - minZoom: 0.05, - maxZoom: 3637937, + minZoom: 0.1, + maxZoom: 2, zoomSpeed: 0.05, zoomDoubleClickSpeed: 1, beforeMouseDown: () => {