Scroll a text box up and down using arrow keys, mouse on a scroll bar or dragging and dropping the text itself. The code automatically estimates the total length of the text so the scroll bar is updated when the text is moved by other means. Press spacebar to continue appears once the text has been scrolled to the bottom. I use a new jitter method to update otherwise static components to keep them in front of the scrolling text.
It works better online because the arrow keys can be continually pressed.
3 Likes
Does anyone have any ideas about why I get the following behaviour on my iPhone (both Safari and Chrome)?
Hi! Thanks for this. I’ve been using your code offline and it works perfectly. However, when I move to Pavlovia something strange happens: The text half shifted to the left and I cannot see the scroll bar unless I leave the “full screen” mode. Do you have any idea on what is going on?
Thank you, Manuel.
Hi.
It looks like there’s been a change in the default anchor. In the code that sets the left alignment (or possibly in the text component) I’ll have added a higher negative value for online than offline. They should now be the same.
Best wishes,
Wakefield
1 Like