From 6ad11be2ae59c8139843e8b3129ab096976d985c Mon Sep 17 00:00:00 2001 From: beefchimi Date: Mon, 29 Jul 2024 18:13:11 -0400 Subject: [PATCH] :fire: [Index] Remove redundant hashchange listener --- src/pages/index.astro | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 25d2cbd..4c42905 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -65,12 +65,4 @@ const [intro, ...portfolioSections] = sections; const togglerInstance = new Toggler(NAV_TOGGLE_ID, NAV_ID); togglerInstance.init(); - - // Even with smooth scrolling, this is necessary to mitigate some of - // the issues that arise from `lvh` sections + scroll tracking. - function handleHashChange() { - navTrackerInstance.safeUpdate(portfolioInstance.mostVisibleIndex); - } - - window.addEventListener('hashchange', handleHashChange, false);