Is it possible in SugarCube to get Jonah-style scrolling appended passages? Is this easy or hard?
Ideally, you'd be able to get a clean slate with some passages (like a passage with a "Chapter" tag, for instance) but the rest would append on and scroll down.
Comments
I was hoping there was a simple way or some code that someone had already written for SugarCube...
I suspect not...
Thee append / click functionality could be abstracted into widgets, displays or pure js functions. It didn't prove practical in my case (there are too many exceptions to the flow) so I coded the control logic by hand.
There is however an issue: since you're not calling a passage transition during the scrolls, everything you do withing a given 'scrolling scene' is temporary until the next passage is reached. This means that reloading a page will clear the content called through appending but not the variables set (which I worked around by loading autosaves on page reload).
The better way to work around this would be to separate the append calls from the click macros so that refreshing causes the content to be appended in the correct order, regardless of whether the page is refreshed or loaded cleanly. Wasn't necessary in my case but for longer jonah-style passages it would almost be a necessity.