update min/max zoom

This commit is contained in:
Vladimir Mandic
2023-07-18 20:43:30 -04:00
parent 46709ee391
commit 0a083c2423
+1 -3
View File
@@ -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');