mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-07 13:28:01 +00:00
Scrollable widget: Fix crash in CI
This commit is contained in:
@@ -191,6 +191,10 @@ ScrollableWidget.prototype.render = function(parent,nextSibling) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ScrollableWidget.prototype.updateScrollPositionFromBoundTiddler = function() {
|
ScrollableWidget.prototype.updateScrollPositionFromBoundTiddler = function() {
|
||||||
|
// Bail if we're running on the fakedom
|
||||||
|
if(!this.outerDomNode.scrollTo) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var tiddler = this.wiki.getTiddler(this.scrollableBind);
|
var tiddler = this.wiki.getTiddler(this.scrollableBind);
|
||||||
if(tiddler) {
|
if(tiddler) {
|
||||||
var scrollLeftTo = this.outerDomNode.scrollLeft;
|
var scrollLeftTo = this.outerDomNode.scrollLeft;
|
||||||
|
Reference in New Issue
Block a user