goldenyz / react-perfect-scrollbar

A react wrapper for perfect-scrollbar
MIT License
482 stars 92 forks source link

None of the options work #59

Closed gregbia closed 5 years ago

gregbia commented 5 years ago

It seems like none of the options work. Example, suppressScrollY={ true }, onScrollX={ console.log('scrolling x') }

goldenyz commented 5 years ago

try this:

import PerfectScrollbar from 'react-perfect-scrollbar'

<PerfectScrollbar
  option={{
    suppressScrollY: true,
  }}
  onScrollX={() => console.log('scrolling x')}
>
        ... SCROLLBAR CONTENT HERE ...
</PerfectScrollbar>