fix: apply inverse zoom to fixed buttons to maintain constant size

This commit is contained in:
juanatsap
2025-11-12 16:55:28 +00:00
parent ff93a3f314
commit 3a381ee111
+8
View File
@@ -368,6 +368,14 @@
zoomWrapper.style.minWidth = '';
}
// Reset zoom on fixed buttons so they stay same size
const backToTopBtn = document.getElementById('back-to-top');
const infoBtn = document.getElementById('info-button');
const inverseZoom = 1 / zoomLevel;
if (backToTopBtn) backToTopBtn.style.zoom = inverseZoom;
if (infoBtn) infoBtn.style.zoom = inverseZoom;
// Update display
updateZoomDisplay(zoomValue);