Skip to content

Commit

Permalink
fix: window issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
themuuln committed Feb 28, 2023
1 parent c41db60 commit a539eb5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { Inter } from "@next/font/google";
import HeroSection from "@/components/hero/HeroSection";
import HeaderSection from "@/components/header/HeaderSection";
import FooterSection from "@/components/footer/FooterSection";
import Cursor from "@/components/Cursor";
import MainSection from "@/components/main/MainSection";
const inter = Inter({ subsets: ["latin"] });

export default function Home() {
return (
Expand Down
7 changes: 0 additions & 7 deletions components/hero/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ function HeroSection() {
restDelta: 0.001,
});

// scroll listen event
window.onscroll = function () {
if (window.scrollY > 500) {
console.log("helloo");
// do something when the user has scrolled down 500 pixels
}
};
return (
<>
<motion.div
Expand Down

1 comment on commit a539eb5

@vercel
Copy link

@vercel vercel bot commented on a539eb5 Feb 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

themuuln – ./

themuuln-themuuln.vercel.app
themuuln-git-main-themuuln.vercel.app
themuuln.vercel.app

Please sign in to comment.