idmillington / undum

A client-side framework for narrative hypertext interactive fiction.
https://idmillington.github.com/undum
MIT License
336 stars 80 forks source link

automatically scrolls to bad locations #19

Closed rjbs closed 10 years ago

rjbs commented 10 years ago

Undum looks very cool, and I've tried going through the tutorial story a few times. There's a show-stopper for me, though. I run my browser window (at the moment) at 578px high. That's about where it usually is, give or take.

Steps to see the bug:

  1. set browser to about that high
  2. go to http://undum.com/games/tutorial.en.html
  3. click to begin
  4. "click to continue" and get the "Topics"
  5. click "different kinds of links"

At first, the "Different Kinds of Links" section appears, starting at the top of the viewport. After a few seconds, though it slides up and I'm no longer able to read from the beginning.

I believe that some section above it is being removed, but I'm not really sure. I am using Chrome 32.0.1700.68 on Mac OS X.

idmillington commented 10 years ago

Thanks for the report. There is a problem with scrolling and removal of content yes. Depending on the state of the scroll bar, you can end up in the wrong place. There isn't a simple mechanism to avoid it though.

We can issue another scroll request after the removal completes, but this looks odd then with two bouts of scrolling, and I tend to already be reading and scrolling when the removal is happening, so it would fight the user at that point. So I'll leave this open for suggestions, but I'm not sure the best way to handle it.