idmillington / undum

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

Undum loses place in narration when pane-switching in mobile #43

Open jjsonick opened 9 years ago

jjsonick commented 9 years ago

On a mobile screen, the stats pane is hidden away unless you summon it, and when you switch to it, it takes up the entire screen -- which would be fine, except that exiting the stats pane and switching back to the story, you are returned to the top of the narration pane instead of wherever you where in the narration when you decided to look at your stats. It's jarring and can involve a fair amount of scrolling to get back to where you where in the story - pretty disruptive compared the rest of the smooth Undum experience.

The suggested change is to use javascript to save the scrolling point on each screen when it's switched to/from.

sequitur commented 9 years ago

See discussion on my fork.