Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function init() {
Scrollbar.initAll({
damping: 1,
continuousScrolling: false,
alwaysShowTracks: true,
});
}
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()
}