Fix Scroll break on large lyric count

This commit is contained in:
2026-04-02 23:02:54 +11:00
parent a45a834580
commit 306ab3a862
+4 -7
View File
@@ -3415,13 +3415,10 @@ const findScroller = (el: HTMLElement): HTMLElement => {
while (parent) {
if (boundary && !boundary.contains(parent)) break;
const style = window.getComputedStyle(parent);
if (
style.overflowY === "auto" ||
style.overflowY === "scroll" ||
style.overflow === "auto" ||
style.overflow === "scroll" ||
parent.scrollHeight > parent.clientHeight + 1
) {
const oy = style.overflowY;
const o = style.overflow;
const scrollable = oy === "auto" || oy === "scroll" || o === "auto" || o === "scroll";
if (scrollable || ((oy === "hidden" || o === "hidden") && parent.scrollHeight > parent.clientHeight + 1)) {
return parent;
}
parent = parent.parentElement;