react-custom-scrollbars icon indicating copy to clipboard operation
react-custom-scrollbars copied to clipboard

How to detect if thumb is visible ?

Open danmo opened this issue 8 years ago • 4 comments

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 avatar Jul 27 '17 20:07 danmo

@danmo Please check this snippet:

          <Scrollbars
            renderTrackHorizontal={() => <div />}
          />

anhldbk avatar Aug 01 '17 13:08 anhldbk

@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.

danmo avatar Aug 01 '17 18:08 danmo

Maybe hideTracksWhenNotNeeded prop is what you wanted

kolyabokov avatar Jan 31 '18 19:01 kolyabokov

Have you found any solution?

Nis5l avatar Apr 15 '21 13:04 Nis5l