(fix): two small errors
All checks were successful
/ build-web (push) Successful in 1m39s
/ build-desktop (linux) (push) Successful in 7m24s
/ build-mobile (push) Successful in 14m36s
/ release (push) Successful in 32s

This commit is contained in:
Alois 2026-06-08 13:43:28 +02:00
commit 9edd548466
2 changed files with 1 additions and 8 deletions

View file

@ -172,7 +172,6 @@ export function Popout({ participant }: { participant: Participant }) {
};
const getCornerResizeDelta = (
e: React.PointerEvent,
horizontalDelta: number,
verticalDelta: number,
) => {
@ -193,25 +192,21 @@ export function Popout({ participant }: { participant: Participant }) {
return (e.clientY - resizeRef.current.clientY) / ASPECT_RATIO;
case "top-left":
return getCornerResizeDelta(
e,
resizeRef.current.clientX - e.clientX,
(resizeRef.current.clientY - e.clientY) / ASPECT_RATIO,
);
case "top-right":
return getCornerResizeDelta(
e,
e.clientX - resizeRef.current.clientX,
(resizeRef.current.clientY - e.clientY) / ASPECT_RATIO,
);
case "bottom-right":
return getCornerResizeDelta(
e,
e.clientX - resizeRef.current.clientX,
(e.clientY - resizeRef.current.clientY) / ASPECT_RATIO,
);
case "bottom-left":
return getCornerResizeDelta(
e,
resizeRef.current.clientX - e.clientX,
(e.clientY - resizeRef.current.clientY) / ASPECT_RATIO,
);

View file

@ -37,9 +37,7 @@ function syncDocumentClasses(targetDocument: Document) {
}
function PopoutScreen() {
const closeCheckRef = useRef<ReturnType<typeof window.setInterval> | null>(
null,
);
const closeCheckRef = useRef<number | null>(null);
const [container, setContainer] = useState<HTMLDivElement | null>(null);
useEffect(() => {