Fix Quick glancing activated when using Touch control dialog

This commit is contained in:
redphx 2024-10-06 20:16:08 +07:00
parent 9719454ea1
commit 203346c0a1

View File

@ -129,8 +129,12 @@ export class StreamStats {
}
this.quickGlanceObserver = new MutationObserver((mutationList, observer) => {
for (let record of mutationList) {
if (record.attributeName && record.attributeName === 'aria-expanded') {
for (const record of mutationList) {
const $target = record.target as HTMLElement;
if (!$target.className || !$target.className.startsWith('GripHandle')) {
continue;
}
const expanded = (record.target as HTMLElement).ariaExpanded;
if (expanded === 'true') {
this.isHidden() && this.start(true);
@ -138,7 +142,6 @@ export class StreamStats {
this.stop(true);
}
}
}
});
this.quickGlanceObserver.observe($uiContainer, {