Fast Movement = Bouncy Scrolling

Hello there,

I've encountered this issue for a while now, but I have no idea how to fix it other than to clear the screen regularly (which I would prefer not to do). If you move around quite quickly the default scrolling seems to scroll to the bottom, then back up the first move, then back to the bottom, then back up to the next move, then back to the bottom, repeat for as many moves were made. Doing this a couple of times isn't much of an issue, but if it's about 12 times in a row it takes 10-15 seconds to catch up. If you clear the screen it gets rid of this, but some of my content continues from room to room, so currently, I just have it manually where a user can clear the screen through an inventory item.

I there a way to adjust the scrolling feature to always go to the bottom rather than to have the sliding to the bottom effect? Or maybe increase the scroll speed? Clear the screen except for the last couple of entries?

Any of the above options would work or maybe some others that I haven't thought of yet. Any advice on what to do would be greatly beneficial.

Thanks a ton!


I've only seen that behaviour on mobile. It might be worth modifying the javascript to disable automatic scrolling after output, by putting a line in the UI Initialisation script something like:

JS.eval ("addTextAndScroll = addText;")

Then there will be no automatic scrolling when the game generates output. If you don't want the players to have to scroll manually, you could use a turnscript (after any turnscripts that might generate output - they run in alphabetical order) to do:

JS.scrollToEnd()

(off the top of my head; I haven't tested this yet)


I tried working with what you provided a bit and it seems to work well most of the time, but there are a few things such as displaying menus/options where it doesn't scroll down. I think I may just try to widen the screen a bit to hold more text and hope that helps enough. Most of this is probably happening when I'm moving too quickly while trying to debug.

One final thought though, is there a way to just increase scroll speed with a UI initialization script?


Log in to post a reply.

Support

Forums