How to use the smooth-scrollbar.initAll function in smooth-scrollbar

To help you get started, we’ve selected a few smooth-scrollbar examples, based on popular ways it is used in public projects.

github Enalean / tuleap / src / scripts / BurningParrot / src / scrollbar.js View on Github external
function init() {
    Scrollbar.initAll({
        damping: 1,
        continuousScrolling: false,
        alwaysShowTracks: true,
    });
}
github quietshu / vrs / public / components / Layout.js View on Github external
componentDidMount() {
    this.sbs = ScrollBar.initAll()
    if (window.scrollHandlers) {
      window.scrollHandlers.forEach(handler => {
        this.sbs[0].addListener(handler)
      })
    }
    this.route = Router.router ? Router.router.pathname : ''
    this.forceUpdate()
  }

smooth-scrollbar

Customize scrollbar in modern browsers with smooth scrolling experience.

MIT
Latest version published 9 days ago

Package Health Score

89 / 100
Full package analysis

Similar packages