1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

Update zoomin.js to use tv-inherit-storyview-scroll variable

This commit is contained in:
Simon Huber 2024-10-20 18:30:41 +02:00 committed by GitHub
parent ea49a1613f
commit 9201a845f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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) {
if(!targetElement || listItemWidget.getVariable("tv-inherit-storyview-scroll") === "yes") {
return;
} else if (targetElement.nodeType === Node.TEXT_NODE) {
this.logTextNodeRoot(targetElement);