Skip to content

Commit 7ebb9a6

Browse files
committed
chore: added touch-none prevent faulty touch scroll on main page
1 parent d402b83 commit 7ebb9a6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/app/(routes)/page.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,12 @@ const Home = () => {
110110

111111
return (
112112
<main className={inter.variable}>
113-
<div className="w-full h-[100vh] flex justify-center relative overflow-hidden">
113+
<div className="w-full h-[100vh] flex justify-center relative overflow-hidden touch-none">
114114
{/* Background Component */}
115-
<div className="relative flex justify-center w-full h-full bg-gradient-to-tl from-primary to-primary/60 pointer-events-none"></div>
116115

117116
<div
118-
className="absolute w-full h-full
119-
flex justify-center items-center z-30 pointer-events-auto"
117+
className="fixed w-full h-full
118+
flex justify-center items-center z-30 pointer-events-auto bg-gradient-to-tl from-primary to-primary/60"
120119
>
121120
<Spline scene={SPLINE_SCENE} onLoad={onLoad} />
122121
</div>

0 commit comments

Comments
 (0)