mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-22 06:56:52 +00:00
in zoomin storyview probably not needed, so just add commented out
This commit is contained in:
parent
547c9a2814
commit
8622d955f7
@ -52,7 +52,7 @@ ZoominListView.prototype.navigateTo = function(historyInfo) {
|
||||
var listItemWidget = this.listWidget.children[listElementIndex],
|
||||
targetElement = listItemWidget.findFirstDomNode();
|
||||
// Abandon if the list entry isn't a DOM element (it might be a text node)
|
||||
if(!targetElement || listItemWidget.getVariable("tv-disable-storyview-scroll") === "yes") {
|
||||
if(!targetElement) {
|
||||
return;
|
||||
} else if (targetElement.nodeType === Node.TEXT_NODE) {
|
||||
this.logTextNodeRoot(targetElement);
|
||||
@ -119,7 +119,9 @@ ZoominListView.prototype.navigateTo = function(historyInfo) {
|
||||
},duration);
|
||||
}
|
||||
// Scroll the target into view
|
||||
// $tw.pageScroller.scrollIntoView(targetElement);
|
||||
/* if(listItemWidget.getVariable("tv-disable-storyview-scroll") !== "yes") {
|
||||
$tw.pageScroller.scrollIntoView(targetElement);
|
||||
}*/
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user