Skip to content
Discussion options

You must be logged in to vote

It turns out you can't just add text to the text element the scrollbar is attached to. After attaching the scrollbar it creates a new element within the text element which holds all the content. New text must be added to the scrollbar's content which can be accessed with scrollbar.getElements().content.

Here is an example:
https://codepen.io/leonshams/pen/gORLvRd

Replies: 1 comment

Comment options

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