react custom scrollbar with react-window
See original GitHub issueI am using react-custom-scrollbar
and would like to integrate it with FixedSizeList
.
I have checked the solution on this issue on react-virtualized
: https://github.com/bvaughn/react-virtualized/issues/692#issuecomment-339393521
But the code is throwing error: Uncaught TypeError: Cannot read property 'handleScrollEvent' of undefined
on scroll, in this function:
handleScroll = ({ target }) => {
const { scrollTop, scrollLeft } = target;
const { Grid: grid } = this.List;
grid.handleScrollEvent({ scrollTop, scrollLeft });
}
I have added ref={ instance => { this.List = instance; } }
on fixedSixe<List
component.
Issue Analytics
- State:
- Created 5 years ago
- Comments:37 (3 by maintainers)
Top Results From Across the Web
react-window with react-custom-scrollbar - CodeSandbox
CodeSandbox is an online editor tailored for web applications.
Read more >How to make react-window FixedSizeList scroll with the ...
One solution is to use a package linked from the react-window github page called react-virtualized-auto-sizer. It is also made by bvaughn ...
Read more >Creating Custom Scrollbars with React - This Dot Labs
This blog post shows you how to do just that using React and TypeScript. If you want to skip straight to the final...
Read more >react-custom-scrollbars-2 - npm
React scrollbars component. Latest version: 4.5.0, last published: 6 months ago. Start using react-custom-scrollbars-2 in your project by ...
Read more >Build an On-hover Custom Scrollbar in React - Level Up Coding
We all know the scroll bar is a UI component which commonly located on the far right or bottom of a window that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Better approach would be to pass
Scrollbars
asouterElementType
example https://codesandbox.io/s/vmr1l0p463
I love how many advanced things are possible using
outerElementType
orinnerElementType