Web:Client:Fix when scrollTo is undefined.
This commit is contained in:
parent
3e50c26992
commit
a5df540a9b
@ -51,7 +51,7 @@ class HotkeyStore {
|
||||
//console.log("element is not visible");
|
||||
}
|
||||
} else {
|
||||
scroll.scrollTo(0, this.elemOffset - scrollRect.height / 2);
|
||||
scroll?.scrollTo(0, this.elemOffset - scrollRect.height / 2);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user