mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-11 23:00:03 +00:00
chore(studio): remove debug logging (#1765)
This commit is contained in:
@@ -43,8 +43,8 @@ export function GestureRecordPanelButton({
|
||||
>
|
||||
<GestureRecordIcon recording={recording} />
|
||||
{recording
|
||||
? `Stop recording ${(recordingDuration ?? 0).toFixed(1)}s — press R`
|
||||
: "Record gesture (R) — move pointer to capture motion"}
|
||||
? `Stop recording ${(recordingDuration ?? 0).toFixed(1)}s -- press R`
|
||||
: "Record gesture (R) -- move pointer to capture motion"}
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -27,12 +27,15 @@ export function resolveGroupCapture(
|
||||
for (let n: HTMLElement | null = startEl; n; n = n.parentElement) {
|
||||
if (n.hasAttribute("data-hf-group")) groups.push(n);
|
||||
}
|
||||
if (!activeGroupElement) {
|
||||
const outermost = groups[groups.length - 1];
|
||||
return outermost ? { kind: "unit", element: outermost } : { kind: "child" };
|
||||
}
|
||||
const idx = groups.indexOf(activeGroupElement);
|
||||
if (idx === -1) return { kind: "out-of-scope" };
|
||||
const nestedInside = groups[idx - 1];
|
||||
return nestedInside ? { kind: "unit", element: nestedInside } : { kind: "child" };
|
||||
const result = ((): GroupCapture => {
|
||||
if (!activeGroupElement) {
|
||||
const outermost = groups[groups.length - 1];
|
||||
return outermost ? { kind: "unit", element: outermost } : { kind: "child" };
|
||||
}
|
||||
const idx = groups.indexOf(activeGroupElement);
|
||||
if (idx === -1) return { kind: "out-of-scope" };
|
||||
const nestedInside = groups[idx - 1];
|
||||
return nestedInside ? { kind: "unit", element: nestedInside } : { kind: "child" };
|
||||
})();
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user