Fix some voice room bugs

This commit is contained in:
Jon Staab
2026-05-28 12:17:17 -07:00
parent 2f8861be62
commit 045d6983dc
3 changed files with 107 additions and 23 deletions
+4 -1
View File
@@ -44,7 +44,10 @@ export const createScroller = ({
: element.closest(".scroll-container")
const check = async () => {
if (container) {
const isHidden = (el: Element) =>
(el as HTMLElement).offsetParent === null || el.clientHeight === 0
if (container && !isHidden(container)) {
// While we have empty space, fill it
const {scrollY, innerHeight} = window
const {scrollHeight, scrollTop, clientHeight} = container