-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undum loses place in narration when pane-switching in mobile #1
Comments
I have a fix for this sitting in a branch. That branch descends from the commonjs fork that Raconteur is currently using, and it implements a new (Better, I think) way of handling scrolling in general, but backporting the code to Undum's trunk shouldn't be a big issue. Basically, the way that branch currently works is:
If you can test this branch for me, I'd appreciate it; when I'm confident it doesn't break anything I'll merge it into the main commonjs branch. |
Looks great! On mobile, only a tiny amount of scrolling needed when returning to the story pane now, far better than returning to the top of the page. Didn't seem to see any bugs with this new behavior, but noticed one bug in the tutorial code itself. In the 'Different Kinds of Links' situation, 'leave this situation' when clicked doesn't take you anywhere (just becomes inactive), making that topic a dead end. This is true for the tutorial on the official Undum site, too, so it's not new to this branch. Should I open a separate issue for that? In that topic, before clicking 'leave this situation', the new scroll code works as expected when going to Character pane and back to Story. After clicking that 'leave this situation', going to the Character pane and back to Story shows the old behavior of going to the top of the page, which I guess is a side effect of something new being expected, but not created. |
Have a look through Undum's own issues, yeah. This is a bug in Undum that has been around for a while. I don't know how to reproduce it. If there is nothing new (Shouldn't be the case unless something has broken - which it has, clicking "leave the situation" there throws an error) it will take you to the top. |
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.
The text was updated successfully, but these errors were encountered: