Web:Client:Fix when scrollTo is undefined.

This commit is contained in:
Vlada Gazizova 2023-04-07 10:36:17 +03:00
parent 3e50c26992
commit a5df540a9b

View File

@ -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);
}
};