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.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

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 2 years ago

Package Health Score

61 / 100
Full package analysis