Open idiotWu opened 2 years ago
Got the same issue here. Any idea how to quick fix or when an update will be comming?
@RubenReuring a quick and dirty fix that eliminates horizontal scrolling:
import { Scrollbar } from 'smooth-scrollbar/scrollbar'; // NOTICE: not the default entry
const setMomentum = Scrollbar.prototype.setMomentum;
Scrollbar.prototype.setMomentum = function(x, y) {
setMomentum.call(this, 0, y);
}
https://github.com/idiotWu/smooth-scrollbar/discussions/511#discussioncomment-4666446
Temporary workaround
scrollbar.limit.x = 0
https://stackblitz.com/~/github.com/Cuberto/scroll-sequence-demo
once all dependencies installed open terminal ctrl + `
and run gulp
command to start the server
Discussed in https://github.com/idiotWu/smooth-scrollbar/discussions/480