ink icon indicating copy to clipboard operation
ink copied to clipboard

Page jumps to top and won't scroll down again

Open Milo-Mesdag opened this issue 3 years ago • 1 comments

I'm having an issue in which some choices in my story cause the page to jump to the top of the story and then stop responding to scrolling (scroll wheel and dragging the scroll bar). The problem is not consistent and does not happen every time the same options are picked. The problem is only occurring in web based versions of my game, I have not been able to reproduce it in Inky. I've encountered it in both Firefox and Google Chrome.

The problem can be worked around by saving the story (after it has jumped to the top and stopped scrolling) and then refreshing the page. Saving and loading again without refreshing makes the most recent part of the story appear at top, but still leaves me unable to scroll.

My story does contain elements of randomness, and after each choice has been selected I check a die roll against a stat to see which knot or stitch should be jumped to. I don't know if this is relevant, as the issue only happens on certain choices and even then only on certain occasions, sometimes working for both successes and failures, and sometimes not, again for both successes and failures.

I imagine that the issue lies not in my .ink file but in some of the scripts that make it run online (as I have not found any such issue within Inky's play-as-you-write system itself), but I know nothing about how those scripts work so I couldn't say any more.

Milo-Mesdag avatar Jan 31 '22 15:01 Milo-Mesdag

Do you have any image when the problem occurs? Can you do a Ctrl + Shift + J on Firefox and give me a screen copy?

I do believe the issue would be best in the inkjs repo https://github.com/y-lohse/inkjs as it's about the web port.

Selsynn avatar Feb 12 '22 02:02 Selsynn