In my React Three Fiber application, I have the following structure:
Website Canvas NativeHTMLContent Canvas Website
The issue I'm facing is that after scrolling down the entire canvas, the scrollbar resets to the top and starts scrolling from the top again. However, when I'm between the components, I can scroll the canvas up without affecting the entire page. It's a bit tricky to explain, but you can experience it yourself by visiting this link:
Below is the code for the Canvas component:
https://github.com/lucas-goldner/WhatABottle-Website/blob/main/components/_sections/hero.tsx
And here is the _index.ts file:
https://github.com/lucas-goldner/WhatABottle-Website/blob/main/pages/index.tsx
The content inside nonHeroContainer is non-HTML content. I'm looking to correct the scroll behavior to simulate scrolling like an entire page. Could someone assist me in resolving this issue?