-
-
Notifications
You must be signed in to change notification settings - Fork 771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to controll the scroll outside the list #449
Comments
If you'll use react-virtualized, you can do this with WindowScroller component. For example you can look into it's code to understand how you can do it in react-window. Also you can add event listener to your parent scroll element, add overflow: hidden to your react-window list, and then change list scroll on parent scroll listener. |
I would love to see an example of something like WindowScroller in react-window. I attempted to do something with the scroll listener on the parent, but I ended up with a mess. I guess I am mostly commenting to follow in the case that someone out there has got this to work with react-window and is willing to share a codesandbox or something. |
You can use WindowScroller component from react-virtualized: |
I've been using this package FedericoDiRosa/react-window-scroller |
Hmm, is there a way to have the parent/window scroll the list container when using react-window with infinite-loader? That's my issue here, I'm having double scroll bars as well and there seems no documentation on a fix
|
@daanishnasir couple things you can do to achieve this:
|
Hi, recently I use react-window in my project, it works perfect if the scroll event is listened by the List self, but if I wrapped the List with div/Tab, how to hide the list's scrollbar and make the parent div to take control of scrolling? The main part of the code is like this:
the render effect is like this, now I have two scrollbars
The text was updated successfully, but these errors were encountered: