1
0
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:
BurningTreeC 2024-10-20 19:01:28 +02:00
parent 547c9a2814
commit 8622d955f7

View File

@ -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);
}*/
};
/*