From 52f05c0a40fa66f2b9725376d08278c527ef9b00 Mon Sep 17 00:00:00 2001 From: Asai Toshiya Date: Wed, 11 Jun 2025 22:56:54 +0900 Subject: [PATCH] Reset scroll position when selecting section --- script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.js b/script.js index 6cad808..4d6b334 100644 --- a/script.js +++ b/script.js @@ -1085,6 +1085,8 @@ function displaySection(sectionName, sections) { }); } }); + + window.scrollTo(0, 0); } function applyColorTheme(themeName) {