React-custom-scrollbars: How to detect if thumb is visible ?

Created on 27 Jul 2017  路  4Comments  路  Source: malte-wessel/react-custom-scrollbars

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 ?

Most helpful comment

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

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

magnetronnie picture magnetronnie  路  3Comments

eyal1990 picture eyal1990  路  5Comments

mhemrg picture mhemrg  路  4Comments

philcockfield picture philcockfield  路  3Comments

nindavidw picture nindavidw  路  4Comments