inkle / inkle/ink

Page jumps to top and won't scroll down again

Open
#733 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.