diff --git a/templates/index.html b/templates/index.html
index cb3f864..796c00a 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -354,11 +354,19 @@
const toggle = document.getElementById('logoToggle');
const paper = document.querySelector('.cv-paper');
+ // Save current scroll position
+ const currentScrollY = window.scrollY || window.pageYOffset;
+
if (toggle.checked) {
paper.classList.add('show-logos');
} else {
paper.classList.remove('show-logos');
}
+
+ // Restore scroll position after DOM updates
+ requestAnimationFrame(() => {
+ window.scrollTo(0, currentScrollY);
+ });
}
function toggleTheme() {