-
Notifications
You must be signed in to change notification settings - Fork 181
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Description
I am working with Next.js and trying to use React Fullpage on the homepage. Everything is set up and working however if I add content outside of the wrapper I am unable to scroll to it. If I grab the scrollbar and pull it down I can see the content, but it just gets snapped back up to the last panel in the wrapper.
Link to isolated reproduction with no external CSS / JS
edit reproduction here:
https://stackblitz.com/edit/nextjs-gwceuj?file=pages%2Findex.js
I wasn't sure how to set up a codesandbox for Next.js, but started a fresh Next.js project and added this to page.tsx:
"use client";
import ReactFullpage from "@fullpage/react-fullpage";
export default function Home() {
return (
<>
<ReactFullpage
credits={{ enabled: true }}
scrollBar
render={() => {
return (
<ReactFullpage.Wrapper>
<div className="section">
<p>hi</p>
</div>
<div className="section">
<p>hi</p>
</div>
<div className="section">
<p>hi</p>
</div>
<div className="section">
<p>hi</p>
</div>
</ReactFullpage.Wrapper>
);
}}
/>
<div style={{ height: "1800px" }}>OUTSIDE</div>
</>
);
}
Steps to reproduce it
- Setup Next.js app.
- Replace code in /src/app/page.tsx with the above
- Load the app.
- Try and scroll down the page past the bottom 'section'
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested