From 219794641ff68512ca7dbdba0cd65be5f40a1e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Fri, 26 May 2023 23:49:59 +0200 Subject: [PATCH] fix: change Lenis easing function --- apps/website/src/components/SmoothScroll.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/website/src/components/SmoothScroll.svelte b/apps/website/src/components/SmoothScroll.svelte index 4335107..74cef26 100644 --- a/apps/website/src/components/SmoothScroll.svelte +++ b/apps/website/src/components/SmoothScroll.svelte @@ -11,7 +11,7 @@ if (browser) { $smoothScroll = new Lenis({ duration: 1.2, - easing: (t: number) => (t === 1 ? 1 : 1 - Math.pow(2, -10 * t)), // https://easings.net/ + easing: (t: number) => Math.min(1, 1.001 - Math.pow(2, -10 * t)), // https://easings.net/ smoothWheel: true, orientation: 'vertical', })