From a69b12642237844e60bef7cb8abac7cbd074b53b Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 8 May 2026 07:47:47 +0000 Subject: fix(scroll): route LandingHero scroll-down through Lenis Lenis disables native CSS smooth scroll, so window.scrollTo({behavior:"smooth"}) jumps instantly. Expose the Lenis instance via a store and scroll through it, falling back to native when unavailable. --- src/stores/lenis.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/stores/lenis.ts (limited to 'src/stores') diff --git a/src/stores/lenis.ts b/src/stores/lenis.ts new file mode 100644 index 00000000..a0f028b5 --- /dev/null +++ b/src/stores/lenis.ts @@ -0,0 +1,6 @@ +import type Lenis from "lenis"; +import { writable } from "svelte/store"; + +const lenis = writable(undefined); + +export default lenis; -- cgit v1.2.3