fix: center zoom at 100% by adjusting range to 25-175%

This commit is contained in:
juanatsap
2025-11-12 16:35:31 +00:00
parent 94ba177220
commit c50287a4a6
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 (50-200)
* @param {number} zoomValue - Zoom percentage (25-175, centered at 100)
* @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(200, Math.max(50, currentZoom + step));
const newZoom = Math.min(175, Math.max(25, currentZoom + step));
slider.value = newZoom;
applyZoom(newZoom, true);