feat: expand zoom range from 50-200% to 10-500% for unlimited scaling

This commit is contained in:
juanatsap
2025-11-12 16:19:30 +00:00
parent e781a17a87
commit bef0b94add
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 (10-500)
* @param {boolean} saveToStorage - Whether to persist to localStorage
*/
function applyZoom(zoomValue, saveToStorage = true) {
@@ -405,7 +405,7 @@
if (!slider) return;
const currentZoom = parseInt(slider.value, 10);
const newZoom = Math.min(200, Math.max(50, currentZoom + step));
const newZoom = Math.min(500, Math.max(10, currentZoom + step));
slider.value = newZoom;
applyZoom(newZoom, true);