chore(studio): remove debug logging (#1765)

This commit is contained in:
Miguel Ángel
2026-06-27 11:34:14 -04:00
committed by GitHub
parent bc5a51a6ee
commit de42af438a
7 changed files with 75 additions and 19 deletions
@@ -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;
}