From 3344334d867b6ddc000db2d7c3f81590970cdee8 Mon Sep 17 00:00:00 2001 From: Rajesh Mondal Date: Mon, 10 Jun 2024 21:34:17 +0530 Subject: [PATCH 1/3] Fix: Improve webpage responsiveness to scrolling (#183) --- src/main.jsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main.jsx b/src/main.jsx index 3d4cd70..4ba59ff 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -78,15 +78,6 @@ const App = () => { document.body.className = theme; }, [theme]); - useEffect(() => { - const lenis = new Lenis(); - function raf(time) { - lenis.raf(time); - requestAnimationFrame(raf); - } - requestAnimationFrame(raf); - }, []); - return ( From a59754e08d44baacdaa96ef9ae2f88b54ec26e2e Mon Sep 17 00:00:00 2001 From: Rajesh Mondal Date: Mon, 10 Jun 2024 21:35:17 +0530 Subject: [PATCH 2/3] Removed Lenis from dependency --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index c1b5e1c..254906b 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "@fortawesome/free-regular-svg-icons": "^6.5.2", "@fortawesome/free-solid-svg-icons": "^6.5.2", "@fortawesome/react-fontawesome": "^0.2.2", - "@studio-freight/lenis": "^1.0.42", "antd": "^5.17.3", "axios": "^1.6.8", "react": "^18.2.0", From 753092ff863220776d4b9dc9d70b4a96a38cd159 Mon Sep 17 00:00:00 2001 From: Rajesh Mondal Date: Mon, 10 Jun 2024 22:01:46 +0530 Subject: [PATCH 3/3] Remove importing lenis --- src/main.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.jsx b/src/main.jsx index 4ba59ff..bd59fe5 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -7,7 +7,6 @@ import { createRoutesFromElements, } from "react-router-dom"; import "./index.css"; -import Lenis from '@studio-freight/lenis'; import Layout from "./components/Layout.jsx"; import LandingPage from "./Pages/LandingPage.jsx"; import CareersPage from "./Pages/CareersPage.jsx";