Scrolling text box
#1
I'm trying to implement a scrolling text box. Specifically, the text is going to be scrolling at uneven interval. (Song lyrics, like a karaoke machine).

I thought, I could get around this easily enough by building a small algorithm that compares the current line vs the entirety of the text, and scrolls to that percentage. However, using .scroll(percentage) results in the scrollbar always resetting to 0 before actually scrolling, which is unpleasant.

Any suggestions on how to accomplish this?

Thanks!
Reply
#2
Well, it seems that changing the value of the textbox causes it to reset to position 0. This certainly makes sense, but makes it extremely difficult to accomplish my task.
Reply
#3
I was able to achieve this almost perfectly with a list item. Then using selectItem() on the element scrolls right to it.
Reply
#4
So glad we could help. '-)
Reply
#5
Wink 
(2017-01-06, 23:59)pkscout Wrote: So glad we could help. '-)


hahSmile
Reply

Logout Mark Read Team Forum Stats Members Help
Scrolling text box0