react-custom-scrollbars
react-custom-scrollbars copied to clipboard
fixed issue #50 when native scrollbars are visible when zoomed out. p…
- [x] fixed issue #50 when native scrollbars are visible when zoomed out.
- [x] prevented infinite loop in the colored example
checking scrollbar width on every handleWindowResize
would lead to a huge performance drop and since this is an edge case I'm not really happy with this approach
Unfortunately there is no way to get 'zoom' event. Browser's zoom triggers resize event. Window resizing is quite rare event and on resize user doesn't scroll anything, so it shouldn't have a drop performance affect
I'm still having this issue. Would it make sense to throttle/debounce this to prevent a too huge performance drop?
@malte-wessel I understand why you're not happy with this implementation, but window resize is still an issue with this package.
Do you think we could, at least, have a public method (this.refs.scrollbar.forceUpdate()
?) to force width recalculation ? This way the package doesn't update by default (no performance drop), but user still have a possibility to trigger recalculation by itself.
I could create a Merge Request if you like the idea
This is a problem for us as well. Is this library dead? :-)
@sorenhoyer looks like it's dead) the problem exists for a long time and there are no solution for it((
You could use react-custom-scrollbars-2
will fix this issue