React-custom-scrollbars: Settings to apply only vertical or only horizontal scroll

Created on 11 Jun 2017  路  4Comments  路  Source: malte-wessel/react-custom-scrollbars

Can't find a way to apply only vertical or only horizontal scroll using this library. Any ideas or advice?

Most helpful comment

for example disable horizontal track.

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

It works for me on chrome and firefox

All 4 comments

Not sure this is the correct way, but autoHeight autoHeightMax={Number.MAX_VALUE} seems to enforce only horizontal scrollbar.

for disable scrollThumb I use renderThumbHorizontal={() => </div>}

@StipJey Is this still the best way to do this?

for example disable horizontal track.

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

It works for me on chrome and firefox

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Amdingo picture Amdingo  路  4Comments

eyal1990 picture eyal1990  路  5Comments

nindavidw picture nindavidw  路  4Comments

limbosounds picture limbosounds  路  4Comments

Niryo picture Niryo  路  3Comments