Skip to content

Stop scroll on x axis #511

Answered by BillyJoeDev
BillyJoeDev asked this question in Q&A
Jan 11, 2023 · 3 comments · 10 replies
Discussion options

You must be logged in to vote

I found a temp sloppy fix, you can set scrollbar.limit.x to 0 after initializing the scroll bar, then add a event listener for scroll and set the limit to 0 in that as well. Seems to do the trick, although is definitely sloppy.

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
3 replies
@BillyJoeDev
Comment options

@sadeghbarati
Comment options

@BillyJoeDev
Comment options

Comment options

You must be logged in to vote
7 replies
@sadeghbarati
Comment options

@BillyJoeDev
Comment options

@sadeghbarati
Comment options

@BillyJoeDev
Comment options

@sadeghbarati
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by BillyJoeDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants