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:
parent
ea49a1613f
commit
9201a845f3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user