From 35153bda661b48292ae9deb34b39653aaaa5e216 Mon Sep 17 00:00:00 2001 From: rohansen856 Date: Wed, 25 Feb 2026 11:24:53 +0530 Subject: [PATCH 1/2] chore: fixed scroll bug Signed-off-by: rohansen856 --- app/layout.tsx | 2 ++ components/ScrollToTop/index.tsx | 22 ++++++++++++++++++++++ components/SmoothScroll/LenisContext.ts | 6 ++++++ components/SmoothScroll/index.jsx | 19 +++++++++++++------ 4 files changed, 43 insertions(+), 6 deletions(-) create mode 100644 components/ScrollToTop/index.tsx create mode 100644 components/SmoothScroll/LenisContext.ts diff --git a/app/layout.tsx b/app/layout.tsx index ebec2d8..c575cb7 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -5,6 +5,7 @@ import GlassNavBar from "@/components/navbar"; import { Footer } from "@/components/footer"; import { ViewTransitions } from 'next-view-transitions' import SmoothScroll from "@/components/SmoothScroll"; +import ScrollToTop from "@/components/ScrollToTop"; const poppins = Poppins({ subsets: ["latin"], @@ -72,6 +73,7 @@ export default function RootLayout({ className={`${geistSans.variable} ${geistMono.variable} ${kanit.variable} ${poppins.className} antialiased overflow-x-hidden bg-black`} > + {children}