You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, the FirstPage component is wrapped in a ScrollArea from the Radix library (but looking ahead, if I remove the ScrollArea from the code, this does not solve the problem). It is ScrollArea that defines the scroll for the MainPage component (Because component SideBar have position: fixed).
The point is that I want to control the moment when there is a scroll and when the scroll is at the very top. I tried many solutions from stackoverflow site and from the network, but none of the solutions helped me (apparently there is an error somewhere in the logic of the code or I am using these examples incorrectly)
Tell me how I can track the moment when there is a scroll and when the scroll is at the very top. That is, I would like to receive "true" if the condition is true, and "false" if the condition is false
The text was updated successfully, but these errors were encountered:
I have a website written in React using Typescript.
FirstPage.tsx
MainPage.tsx
As you can see, the FirstPage component is wrapped in a ScrollArea from the Radix library (but looking ahead, if I remove the ScrollArea from the code, this does not solve the problem). It is ScrollArea that defines the scroll for the MainPage component (Because component SideBar have position: fixed).
The point is that I want to control the moment when there is a scroll and when the scroll is at the very top. I tried many solutions from stackoverflow site and from the network, but none of the solutions helped me (apparently there is an error somewhere in the logic of the code or I am using these examples incorrectly)
Tell me how I can track the moment when there is a scroll and when the scroll is at the very top. That is, I would like to receive "true" if the condition is true, and "false" if the condition is false
The text was updated successfully, but these errors were encountered: