From faec58467e689a87a958254130df5588e4dd85c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Tue, 28 Mar 2023 23:18:43 +0200 Subject: [PATCH] fix: change Lenis parameters from newer versions --- apps/website/src/components/SmoothScroll.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/website/src/components/SmoothScroll.svelte b/apps/website/src/components/SmoothScroll.svelte index 46dc94d..4335107 100644 --- a/apps/website/src/components/SmoothScroll.svelte +++ b/apps/website/src/components/SmoothScroll.svelte @@ -12,8 +12,8 @@ $smoothScroll = new Lenis({ duration: 1.2, easing: (t: number) => (t === 1 ? 1 : 1 - Math.pow(2, -10 * t)), // https://easings.net/ - smooth: true, - direction: 'vertical', + smoothWheel: true, + orientation: 'vertical', }) }