-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid unnecessary scrolling at startup
The main fix is removing the fallback navigation to the first tiddler in story.js. Also required is the fix to the startup behaviour of zoomin.js. Fixes #981
- Loading branch information
Jermolene
committed
Feb 10, 2015
1 parent
b166632
commit 691e571
Showing
2 changed files
with
1 addition
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
691e571
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Jermolene, since this change (probably), I've noticed that when I press F5 to refresh a TiddlyWiki instance in the browser, the story river retains its scroll offset from the previous instance. This is confusing, because the river's content has been reinitialised – so I end up looking at what is effectively a random tiddler.
I've observed this in both Firefox and Chrome.
691e571
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I noticed that too. I think some of the time it may conceivably be useful behaviour; if one were refreshing to see the result of a Node.js change, for example.
A different fix for this problem would have been to maintain the navigation to the first tiddler in story.js, but to refine the scrolling code so that the little mini-scroll isn't performed. It may still be desirable to fix that, as it would also fix the scrolling problem with permalinks (which is not currently fixed).
691e571
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's only useful if nothing above the current position in the story river changes when you press F5.
691e571
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which would typically be the case if one was using auto-permaviewing or retaining $:/StoryList.
What do you think would be preferable?
691e571
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that the new behaviour makes sense if one is auto-permaviewing or retaining the story list. Maybe the scroll-to-top should occur as before when one isn't.
Failing that, it could be configured by a Control Panel option.