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:
parent
b166632bbb
commit
691e5719a4
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user