From 0a083c24232e7afa97fe568fd271a0c351400b92 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Tue, 18 Jul 2023 20:43:30 -0400 Subject: [PATCH] update min/max zoom --- javascript/imageViewer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/javascript/imageViewer.js b/javascript/imageViewer.js index 81b222d6b..85f30042a 100644 --- a/javascript/imageViewer.js +++ b/javascript/imageViewer.js @@ -137,9 +137,7 @@ function initImageViewer() { modalImage.id = 'modalImage'; // modalImage.addEventListener('keydown', modalKeyHandler, true); modalPreviewZone.appendChild(modalImage); - panzoom(modalImage, { - zoomSpeed: 0.05, minZoom: 0.25, maxZoom: 4.0, filterKey: (/* e, dx, dy, dz */) => true, - }); + panzoom(modalImage, { zoomSpeed: 0.05, minZoom: 0.1, maxZoom: 5.0, filterKey: (/* e, dx, dy, dz */) => true }); // toolbar const modalZoom = document.createElement('span');