xobotyi/react-scrollbars-custom

Realize auto hide scrollbar

gerainlotZS opened this issue · 5 comments

I want realize auto hide when scrollbar not used
I may can't use removeTracksWhenNotUsed or permanentTracks
How to use these attributes

It is described in docs =/

but not removeTracksWhenNotUsed or permanentTracks worked
<ScrollBar removeTrackYWhenNotUsed permanentTrackY={false} onUpdate={handleScrollBarScroll} />

If permanentTrack is true scrollbars will be shown even if there is no scroll possibility.
removeTrackWhenNotUsed will prevent the track rendering if there is no scroll possibility.

This library has no autohide implementation due to only small amount of developers need that feature and there is no sense to increase bundle size for most part of developers who don't need it.

Here you can find the implementation: #46

Thanks, the product need that feature, so I add an auto-hide implementation in my project, Thank a lot!