mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-07-07 04:22:50 +00:00
Update pop.js to use tv-inherit-storyview-scroll variable
This commit is contained in:
parent
a0caa0f12d
commit
1aca53f9cc
@ -24,7 +24,7 @@ PopStoryView.prototype.navigateTo = function(historyInfo) {
|
|||||||
var listItemWidget = this.listWidget.children[listElementIndex],
|
var listItemWidget = this.listWidget.children[listElementIndex],
|
||||||
targetElement = listItemWidget.findFirstDomNode();
|
targetElement = listItemWidget.findFirstDomNode();
|
||||||
// Abandon if the list entry isn't a DOM element (it might be a text node)
|
// Abandon if the list entry isn't a DOM element (it might be a text node)
|
||||||
if(!targetElement || targetElement.nodeType === Node.TEXT_NODE) {
|
if(!targetElement || targetElement.nodeType === Node.TEXT_NODE || listItemWidget.getVariable("tv-inherit-storyview-scroll") === "yes") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Scroll the node into view
|
// Scroll the node into view
|
||||||
|
Loading…
x
Reference in New Issue
Block a user