react-custom-scrollbars
react-custom-scrollbars copied to clipboard
How to detect if thumb is visible ?
I need to hide the custom track component when view isn't scrollable thus no thumb is visible. any suggestions on how can it be accomplished ?
@danmo Please check this snippet:
<Scrollbars
renderTrackHorizontal={() => <div />}
/>
@anhldbk already using the renderTrack methods to display custom tracks, still I would wan't to hide this tracks when area isn't scrollable thus no thumb visible.
Maybe hideTracksWhenNotNeeded prop is what you wanted
Have you found any solution?