fix: restore zoom range to 50-200% with 100% centered

This commit is contained in:
juanatsap
2025-11-12 16:34:03 +00:00
parent 15834a6d6b
commit 94ba177220
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -343,7 +343,7 @@
/**
* Apply zoom transformation to CV paper
* @param {number} zoomValue - Zoom percentage (10-500)
* @param {number} zoomValue - Zoom percentage (50-200)
* @param {boolean} saveToStorage - Whether to persist to localStorage
*/
function applyZoom(zoomValue, saveToStorage = true) {
@@ -410,7 +410,7 @@
if (!slider) return;
const currentZoom = parseInt(slider.value, 10);
const newZoom = Math.min(500, Math.max(10, currentZoom + step));
const newZoom = Math.min(200, Math.max(50, currentZoom + step));
slider.value = newZoom;
applyZoom(newZoom, true);