1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

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
This commit is contained in:
Jermolene 2015-02-10 22:40:38 +00:00
parent b166632bbb
commit 691e5719a4
2 changed files with 1 additions and 3 deletions

View File

@ -133,8 +133,6 @@ function openStartupTiddlers(options) {
target = target.substr(2,target.length - 4);
}
$tw.wiki.addToHistory(target);
} else if(storyList.length > 0) {
$tw.wiki.addToHistory(storyList[0]);
}
}

View File

@ -30,7 +30,7 @@ var ZoominListView = function(listWidget) {
if(!(domNode instanceof Element)) {
return;
}
if(targetTiddler !== itemWidget.parseTreeNode.itemTitle || (!targetTiddler && index)) {
if((targetTiddler && targetTiddler !== itemWidget.parseTreeNode.itemTitle) || (!targetTiddler && index)) {
domNode.style.display = "none";
} else {
self.currentTiddlerDomNode = domNode;