diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 211a1d8..f1837a4 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -327,6 +327,7 @@ const setup = () => { window.swup.hooks.on('link:click', () => { document.documentElement.style.setProperty('--content-delay', '0ms') }) + window.swup.hooks.on('content:replace', initCustomScrollbar) } if (window.swup.hooks) { setup()