mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 20:10:03 +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:
parent
b166632bbb
commit
691e5719a4
@ -133,8 +133,6 @@ function openStartupTiddlers(options) {
|
|||||||
target = target.substr(2,target.length - 4);
|
target = target.substr(2,target.length - 4);
|
||||||
}
|
}
|
||||||
$tw.wiki.addToHistory(target);
|
$tw.wiki.addToHistory(target);
|
||||||
} else if(storyList.length > 0) {
|
|
||||||
$tw.wiki.addToHistory(storyList[0]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ var ZoominListView = function(listWidget) {
|
|||||||
if(!(domNode instanceof Element)) {
|
if(!(domNode instanceof Element)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(targetTiddler !== itemWidget.parseTreeNode.itemTitle || (!targetTiddler && index)) {
|
if((targetTiddler && targetTiddler !== itemWidget.parseTreeNode.itemTitle) || (!targetTiddler && index)) {
|
||||||
domNode.style.display = "none";
|
domNode.style.display = "none";
|
||||||
} else {
|
} else {
|
||||||
self.currentTiddlerDomNode = domNode;
|
self.currentTiddlerDomNode = domNode;
|
||||||
|
Loading…
Reference in New Issue
Block a user